Integration with Twitter <-> Telegram
-
Clone repo :)
-
Get twitter token in https://apps.twitter.com/app
-
Get Telegram token in https://t.me/BotFather
-
Set environment variables
telegram_token = 'ABCD:0123456789'
admin_id = '0123456789'
cron_job = '50 * * * * *'
DEBUG = 'TTgram:bot, TTgram:error'
- Install dependencies
$ yarn install
- Run the TTgram
$ npm start
-
Send
/add
-
Set tokens
-
Done :)
- cron: Cron jobs for your node
- debug: small debugging utility
- env-cmd: Executes a command using the envs in the provided env file
- graceful-fs: A drop-in replacement for fs, making various improvements.
- jsonfile: Easily read/write JSON files.
- telegraf: 📡 Modern Telegram bot framework
- twitter: Twitter API client library for node.js
MIT