Coder Social home page Coder Social logo

deletemediarobot's Introduction

Delete Media Robot

A Simple Telegram Bot to delete all medias in a chat with single command !

Requirements:

TG_BOT_TOKEN    - Get from @BotFather
APP_ID          - Get from my.telegram.org
API_HASH        - Get from my.telegram.org
TG_USER_SESSION - Run any userbot session maker(https://repl.it/@ayrahikari/pyrogram-session-maker)
AUTH_USERS      - List of Autherized user ids separated by <space>

STRING SESSION USER MUST BE AN ADMIN IN THE TARGET CHAT WHERE BOT PERFORMS THE FUNCTION

@BotFather Command:

/cleanmedia - Delete medias in Group (Only done by AUTH USERS)

Deploy Easy Way:

Deploy

Deploy Hard Way:

Create config.py with variables as given below (Refer sample.config):

class Config(object):
    TG_BOT_TOKEN = "134448596:AAEIyo3EBVCN3qdd3TfrmQUxoI-eZVGvmI"
    APP_ID = int(123635)
    API_HASH = "1a417dd4fdf3ead2819ff35641daa16b"
    TG_USER_SESSION = "BQDGRUC0_qw2GVQ2gpLFaXOt0mrWg16cBZPATQvR8KThDzi-NRE1I9DB......"
    AUTH_USERS = [1134455567, 9244566948]

Run the following:

virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 main.py

LICENSE

Credits:

DAN for his Pyrogram Library

SpEcHiDe for his DeleteMessagesRoBot

Creator :

Mallu Boy In Telegram - AS

deletemediarobot's People

Contributors

m4mallu avatar

Forkers

toxicdeemodder1

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.