Telegram bot to delete messages after specific time
API_ID: Get from my.telegram.orgAPI_HASH: Get from my.telegram.orgBOT_TOKEN: Your telegram bot token from @BotFatherSESSION: Generate from hereCHATS: ID of Chats (seperate by spaces)TIME: Time in secondsDATABASE_URI: MongoDB URI, get from mongodb.com (watch video)WHITE_LIST: messages from these users will not be deleted (User ID seperated by spaces) - OptionalBLACK_LIST: only message from these users will be deleted (User ID seperated by spaces) - Optional
main- Works with user account. It delete all types of messages (SESSIONvariable is required)bot-only- Works with bot. It does not delete messages coming from bots (SESSIONvariable not required)
- Bot is admin in Chats with delete permission
- Account used to create
SESSIONis a member in Chats
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:
VPS
Install latest version of Python Create variables approximatelygit clone https://github.com/arun017s/AutoDelete cd AutoDelete pip3 install -r requirements.txt python3 main.py
Join in our Support Group for help & feedback
🌠 Star & Fork the repo
Licensed under GNU GPL v3.0
Selling The Codes To Other People For Money Is Strictly Prohibited.
