https://github.com/abhishekbiswal/telegram-channel-twitter-bot
Send New Tweets to Telegram Channel
https://github.com/abhishekbiswal/telegram-channel-twitter-bot
telegram-bot telegram-channel tweets twitter
Last synced: 7 months ago
JSON representation
Send New Tweets to Telegram Channel
- Host: GitHub
- URL: https://github.com/abhishekbiswal/telegram-channel-twitter-bot
- Owner: AbhishekBiswal
- Created: 2018-08-29T23:42:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T03:19:20.000Z (about 7 years ago)
- Last Synced: 2025-03-22T16:52:24.231Z (8 months ago)
- Topics: telegram-bot, telegram-channel, tweets, twitter
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Post New Tweets By A User to A Telegram Channel
-
### What it does
- Fetches tweets every X minutes from the specified twitter user.
- Posts them to a Telegram Channel.
### Why
To make it easier for twitter accounts to have their own Telegram channel without writing a lot of code. Most of the config is in `config.js`.
### Uses
- Node.js
- npm:twitter
- npm:telegraf (Planning to extend on it, but it could have been done with the native Telegram wrapper)
### Required
- Telegram Bot Token (Use @BotFather Telegram Bot to create one)
- Twitter Consumer Token, Secret, Access Token & Secret.
### Steps
- Get the required Credentials and populate `config.js` (Use ENV vars if you want to, but through the config file)
- Create a Telegram Channel
- Add the bot you created in the first step to the Telegram Channel as an Administrator. (Don't try to add as user and promote, doesn't work that way)
- Set up a cron job to run `cron.js` every X minutes (Will update this with heroku setup)
### Why did you do it?
If someone tells you that to create a Telegram bot you have to use another bot with a name like `@BotFather`, you have to give it a try.