J-Rios / TLG_JoinCaptchaBot

Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
GNU General Public License v3.0
520 stars 217 forks source link

[Help] No Captcha when Join in own Bot instance #36

Closed nbctcp closed 4 years ago

nbctcp commented 4 years ago

I install your program in Ubuntu and run successfully The problem was, whenever I join my group using my different telegram account. There is no Captcha appear. What missing in my steps tq

STEPS: open telegram search for BotFather and open /newboot YOURbot bot name YOURbot username YOURbot open YOURbot /captcha_mode ascii

open Ubuntu

apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

git clone --recurse-submodules https://github.com/J-Rios/TLG_JoinCaptchaBot

pip install -r TLG_JoinCaptchaBot/requirements.txt

cd TLG_JoinCaptchaBot/sources

vi constants.py

modify this and put your token Change "TOKEN" : "XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

./run

./status

Running (PID - 18171). open your telegram group and add YOURbot as member and promote it as admin

J-Rios commented 4 years ago

Hi,

Take a look into "output.log" file to check what happens when a user joins the group.

If there is no error there, check if in your group appears the message of user join the group (no bot message, just telegram message), if this message didn't appears, then that group is too new and/or has too low users in and Telegram is not working properly with that group yet, the group needs to shows that message that notify users joins to allow the Bot receive that join, in this case, you just need to wait or try in other group.

Also, notice that Bot didn't request for captcha to Admins of that group, even if that admin goes out, and enter again in the group.

Regards.

nbctcp commented 4 years ago

I choose simpler solution which just use your bot @join_captcha_bot But every time a new user join, it will give a message How to disable that notification

This Bot is free software and open-sourced under the GNU-GPL license. Bot Developed by @JoseTLG. You can check the code here: https://github.com/J-Rios/TLG_JoinCaptchaBot Do you like my work? Buy me a coffee. Paypal: https://www.paypal.me/josrios

J-Rios commented 4 years ago

Please, the Bot is offer completely open and free, don't ask on how to disable the only message regarding of attribution of Bot developer, this message can be considered related to copyright license.

purrowler commented 4 years ago

I've got the same problem with the bot. All the commands work but it doesen't send any captchas. The bot only prints 1 empty line in the output.log when a user joins a chat so it definetly detects it. output.log You can see the empty line which indicates the user joining! Is there some way to find out whats happening when it prints that empty line?