AutoDelete-V2

Delete group messages after a specific time

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/Arun-TG/AutoDelete-V2
cd AutoDelete-V2
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 bot.py

Credits

GitHub

View Github