A very simple blocklist bot for telegram. It will check if a user is in a blocklist. In case he/she is, they'll be banned from the group (Even if the user never entered before).
- Create a bot in
BotFatherin instagram (Say/newbotand follow instructions). Save the accessTOKENit'll provide. - In
BotFather, set/setprivacytoDisable. - Run
python run_bot.py [TOKEN].
NOTE: You may need to install python-telegram-bot. e.g.: pip install python-telegram-bot.
- Stop running the script.
- Edit the source code and add an entry in the
BLOCKLIST. - Run the script again.