Telegram bot to send notification from twitter and instagram to telegram chat/group/channel
Name | Description | Is Required | Default |
---|---|---|---|
NOTIFICATION_BOT_TWITTER_TEMPLATE |
Twitter notification template. see Twitter Variables | No | "{TWEET_DESCRIPTION}\n\n> {TWITTER_LINK}" |
NOTIFICATION_BOT_INSTAGRAM_TEMPLATE |
Instagram notification template. see Instagram Variables | No | "{POST_DESCRIPTION}\n\n> {INSTAGRAM_LINK}" |
NOTIFICATION_BOT_TWITTER_USERNAME |
Twitter username | No | - |
NOTIFICATION_BOT_INSTAGRAM_USERNAME |
Instagram username | No | - |
NOTIFICATION_BOT_TELEGRAM_CHAT_ID |
Telegram chat/group/channel ID @MyIdBot | Yes | - |
NOTIFICATION_BOT_TOKEN |
Telegram bot token @BotFather | Yes | - |
NOTIFICATION_BOT_DELAY |
The time between each new post check ( in seconds ) | No | 120s |
With template you can customization notification as you want
Note: Put the variable name in the template in curly brackets
{}
Name | Description |
---|---|
CHAT_ID |
The ID of the chat to which this notification will be sent |
TWITTER_LINK |
Tweet link on Twitter |
NITTER_LINK |
Tweet link on Nitter service |
TWEET_DESCRIPTION |
Tweet description |
Name | Description |
---|---|
CHAT_ID |
The ID of the chat to which this notification will be sent |
INSTAGRAM_LINK |
Tweet link on Instagram |
BIBLIOGRAM_LINK |
Tweet link on Bibliogram service |
POST_DESCRIPTION |
Tweet description |
Rename .env.example
to .env
, and fill the variables, and the bot will send the notification in the channel
You must fill the variables in environment file (.env
)
pip3 install -r requirements.txt
python3 ./src/main.py
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.