I'm a python beginner, so please don't be mad at my code 😂
I'M SORRY FOR MY ENGLISH ON THIS PROJECT, I'M ITALIAN AND I CAN'T WRITE ENGLISH PERFECTLY. IF YOU FIND TYPOS, OR ANYTHING ELSE YOU CAN CONTACT ME.
This bot it's just a simple implementation of a captcha for everyone that joins a telegram group.
Tested only with python 3.7
Install im-not-a-bot cloning this repo:
$ git clone https://github.com/NicKoehler/im-not-a-bot
Then install the requirements:
$ cd im-not-a-bot
$ pip install -r requirements.txt
The first thing you need to do it's create a telegram bot using the BotFather and get the bot token.
To configure the bot just open the config.yml file and insert your token (without double quotes or single quotes).
token: your token here
optional:
Changing the text in the bot.
example:
notbot_text: Ok {}, you're not a bot.
Where you see the curly bracket, the name of the person that joins the group it will be inserted.
Start the bot with:
$ python bot.py
Now you can add your bot to a supergroup and make it administrator.
Done, now when someone joins the group they will be restricted and prompted to press the button to confirm that they are not a bot.