Backup & ForceSub
Automatically Forward files from groups to channel & Do force sub on members
Variables
API_ID
: Get from my.telegram.orgAPI_HASH
: Get from my.telegram.orgBOT_TOKEN
: Your telegram bot token from @BotFatherSESSION
: Generate from hereGROUPS
: ID of Groups where the bot works (seperate by spaces)AUTO_DELETE
: Give True or False. If True, all messages in groups will be deleted after 10 minutes (not tested).DB_CHANNEL
: ID of the Backup ChannelFSUB_CHANNEL
: ID of the ForceSub ChannelCHANNEL_LINK
: Invite link of the ForceSub Channel
Make sure:
- Bot is admin in Groups & ForceSub Channel
- Account used to create SESSION is member in Groups & admin in Backup Channel
Deploy in Heroku
Deploy in your VPS
git clone https://github.com/Arun-TG/Backup-ForceSub
cd Backup-ForceSub
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 bot.py