Suhail1626 / AutoDelete

https://telegram.me/arun_tg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

https://telegram.me/arun_tg

License:GNU General Public License v3.0


Languages

Language:Python 98.5%Language:Dockerfile 1.3%Language:Procfile 0.3%