Skip to content

Telegram bot to send notification from twitter and instagram to telegram chat/group/channel

License

Notifications You must be signed in to change notification settings

TheAwiteb/NFBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFBOT (Notification Bot)

Telegram bot to send notification from twitter and instagram to telegram chat/group/channel

Requirements

Environment Variables

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

Templates

With template you can customization notification as you want

Note: Put the variable name in the template in curly brackets {}

Twitter Template Variables

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

Instagram Template Variables

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

Bot interface

Rename .env.example to .env, and fill the variables, and the bot will send the notification in the channel

Installation

Building

You must fill the variables in environment file (.env)

Install Requirements

pip3 install -r requirements.txt

Running

python3 ./src/main.py

License

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.

About

Telegram bot to send notification from twitter and instagram to telegram chat/group/channel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published