Coder Social home page Coder Social logo

t2t's Introduction

Telegram2Twitter

Simple telegram bot for tweeting channel posts

Prerequisites

You'll need a Telegram Bot Token, you can get it by creating your own telegram bot via @BotFather (more info here). Don't forget to add it to your channel as administrator

Also, setting this up will need an Application-only authentication token from Twitter (more info here). Optionally, you can provide a user access token and secret.

You can get this by creating a Twitter App here.

Bear in mind that if you don't have added a mobile phone to your Twitter account you'll get this:

You must add your mobile phone to your Twitter profile before creating an application. Please read https://support.twitter.com/articles/110250-adding-your-mobile-number-to-your-account-via-web for more information.

For client.py you need to obtain api_hash, api_id and phone, more here. Don't forget to set start and end dates

Running

# clone this thing
# create your virtualenv, activate it, etc
# install requirements
pip install -r requirements.txt

# fill settings.py (see prerequisites)
# before running telegram2twitter you must add your telegram bot to a channel as administrator
python telegram2twitter.py

# for retrieving old posts (as bot cannot see posts, that published before him)
python client.py

Based on

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Innopolis University
  • My mama
  • And my dealer

If you find some bugs or monkey code, feel free to create an issue

t2t's People

Contributors

zawamlansarallah1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.