TG-Scheduled-Message-Delete-BOT

Delete group messages after a specific time INCLUDING MESSAGES FROM BOTS

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) EXAMPLE : -1001274443179
  6. ADMINS : ID of Admins, messages from admins will not be deleted (seperate by space if multiple ADMINS)
  7. TIME : Time in Seconds

Make sure:

  • Bot is ADMIN in Groups with Delete permission
  • Account used to create SESSION is ADMIN in Groups

Deploy in Heroku

Deploy

Deploy in your VPS

git clone https://github.com/HithaishiDesai/TG-Scheduled-Message-Delete-BOT
cd AutoDelete-V2
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 bot.py

Credits

  • All Credits To ARUN