๐Ÿ“ฆ dracarys18 / TweetBot

A simple Telegram Bot to Stream the tweets from any twitter accounts to Telegram Channel

โ˜… 114 stars โ‘‚ 46 forks ๐Ÿ‘ 114 watching โš–๏ธ MIT License
hacktoberfestruststreaming-apitelegram-botteloxidetwitter-stream
๐Ÿ“ฅ Clone https://github.com/dracarys18/TweetBot.git
HTTPS git clone https://github.com/dracarys18/TweetBot.git
SSH git clone git@github.com:dracarys18/TweetBot.git
CLI gh repo clone dracarys18/TweetBot
dracarys18 dracarys18 Update telegram env variable name b764c4a 3 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .idea
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ keys_sample.env
๐Ÿ“„ LICENSE
๐Ÿ“„ Procfile
๐Ÿ“„ README.md
๐Ÿ“„ rust-toolchain
๐Ÿ“„ README.md

TweetBot

A simple Telegram Bot to Stream the tweets from any account from twitter to your telegram channel.This bot has been rewritten in rust if you still want to use the old source you can do that from checking out python branch

Guide

  • Get Twitter API Keys and Access Keys from here
  • Ask for Twitter elevated permissions here, click at Elevated option and fill the forms
  • 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 to .env
  • Install Rust by running the following command
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Run the Bot by executing:
cargo run --release

Heroku usage

Just do all the things given in the Guide except the 6th & 7th part and follow the further steps here for Heroku deployment.
  • Create a Heroku APP
  • Install Heroku Rust buildpack from here.
  • 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.

Sample Channel

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