Skip to content

isjerryxiao/AntiSpamBot

Repository files navigation

Antibotbot for Telegram groups

License: GPL v3

The bot is currently running as @ArchCNAntiSpamBot.

To run the bot yourself, you will need:

Deploying

With bot api only

  1. Copy config.py.example to config.py.
  2. Get a bot token.
  3. Change TOKEN to the one you just got and SALT to whatever string you want inside config.py.
  4. You're ready to go. Install requirements with pip3 install -r requirements.txt
    and then launch the bot with python3 bot.py.

With mtproto userbot api

This is only useful when you have an admin account with no add_new_admin permission.

  1. Get a bot token and modify TOKEN as well as SALT inside config.py as mentioned above.
  2. Get the API ID and hash for your telegram user account.
  3. Put your api_id and hash here.
  4. Set USER_BOT_BACKEND to True.
  5. You're ready to go. Install requirements with pip3 install -r requirements-userbot.txt
    and then launch the bot with python3 bot.py.

About

AntiSpamBot for Telegram groups

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages