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