Skip to content

arun017s/AutoDelete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoDelete

Telegram bot to delete messages after specific time AutoDelete

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 Pyrogram Session
  5. CHATS : ID of Chats (seperate by spaces)
  6. TIME : Time in seconds
  7. DATABASE_URI : MongoDB URI, get from mongodb.com (watch video)
  8. WHITE_LIST : messages from these users will not be deleted (User ID seperated by spaces) - Optional
  9. BLACK_LIST : only message from these users will be deleted (User ID seperated by spaces) - Optional

Branches

  • main - Works with user account. It delete all types of messages (SESSION variable is required)
  • bot-only - Works with bot. It does not delete messages coming from bots (SESSION variable not required)

Make sure:

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

Deployment

You can fork and deploy this bot on any server (Render, Koyeb, Railway, Heroku.. etc)
Remember to create variables!
Some deployement options are mentioned below:

Koyeb
deploy-to-koyeb
Remember to create variables
Railway
deploy-to-railway
Remember to deploy the latest version
VPS Install latest version of Python Create variables approximately
git clone https://github.com/arun017s/AutoDelete
cd AutoDelete
pip3 install -r requirements.txt
python3 main.py

Support

Join in our Support Group for help & feedback
Telegram Telegram

Note

🌠 Star & Fork the repo
⚠️ Kangers stay back

Disclaimer

GNU General Public License v3.0
Licensed under GNU GPL v3.0
Selling The Codes To Other People For Money Is Strictly Prohibited.