The bot is currently running as @ArchCNAntiSpamBot.
To run the bot yourself, you will need:
- Python 3.8+
- The python-telegram-bot module
Deploying
With bot api only
- Copy
config.py.exampletoconfig.py. - Get a bot token.
- Change TOKEN to the one you just got and SALT to whatever string you want inside config.py.
- You're ready to go. Install requirements with
pip3 install -r requirements.txt
and then launch the bot withpython3 bot.py.
With mtproto userbot api
This is only useful when you have an admin account with no add_new_admin permission.
- Get a bot token and modify TOKEN as well as SALT inside config.py as mentioned above.
- Get the API ID and hash for your telegram user account.
- Put your api_id and hash here.
- Set USER_BOT_BACKEND to
True. - You're ready to go. Install requirements with
pip3 install -r requirements-userbot.txt
and then launch the bot withpython3 bot.py.
frm https://github.com/isjerryxiao/AntiSpamBot
No comments:
Post a Comment