Zinan100/Auto-Delete-Bot

Automatically Delete Telegram group messages after a specific time

โ˜… 0Forks 0PythonGitHub โ†—Compare

README

๐—”๐—จ๐—ง๐—ข-๐——๐—˜๐—Ÿ๐—˜๐—ง๐—˜-๐—•๐—ข๐—ง

Variables

  1. API_ID : Get from my.telegram.org
  2. API_HASH : Get from my.telegram.org
  3. BOT_TOKEN : Your telegram bot token from @BotFather
  4. SESSION : Generate from here GenerateStringName
  5. GROUPS : ID of Groups (seperate by spaces)
  6. ADMINS : ID of Admins, messages from admins will not delete (seperate by spaces)
  7. TIME : Time in seconds

Make sure:

  • Bot is admin in Groups with delete permission
  • Account used to create SESSION is a member in Groups

Deploy in Heroku

Deploy

Deploy in your VPS

git clone https://github.com/TG-V4MP1R3/Auto-Delete-Bot
cd Auto-Delete-Bot
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 bot.py

Credits

Developer

Contributors

TG-V4MP1R3Zinan100

Issues