A simple Telegram Bot to Stream the tweets from any account from twitter to your telegram channel.
- Get Twitter API Keys and Access Keys from here
- Go to @BotFather in telegram and create a Bot
- Open keys_sample.env and fill the API Keys and Access Keys and Chat ID where you want the bot to send messages.
- Rename
key_sample.env
tokeys.env
- Open
userlist.py
and add the usernames of the person's you want to Stream tweets from for Example:-userslist = ['elonmusk','nasa']
- Run the Bot by executing:
pip3 install -r requirements.txt
python3 main.py
Just do all the things given in the Guide except the 6th part and follow the further steps here for Heroku deployment.
- Create a Heroku APP
- Git add and commit the files in the project directory and make sure you have the Heroku CLI installed.
git add. -f
git commit -m "Initial Commit"
git push heroku HEAD:master --force
- Then go to the app page in your heroku dashboard and turn on the dynos.
This channel is just a sample channel that streams the tweets from the Twitter accounts which are usually regular with Manchester United football club latest news and stuff.
Just visit This Telegram Channel to check how the bot works