Giter Club home page Giter Club logo

autodelete's Introduction

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.

autodelete's People

Contributors

arun017s avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.