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
515 stars 217 forks source link

Trigger bot on add user #184

Closed DonQuixote202 closed 10 months ago

DonQuixote202 commented 1 year ago

I manage a private group to which members are invited and added. The Join Captcha Bot isn't being triggered when folks join

  1. by being added by an admin,
  2. by following a single-use link, or
  3. by following an admin-approval-required link.

Can the bot trigger on 1 or 3, please?

J-Rios commented 1 year ago

Hello,

Here is some info regarding your points:

1 - This is intentional and expected behaviour for the majority of the people. If an Admin add a new member, that user could not be online on that moment, and then it will fail the captcha, also an Admin is considered a user to trust, it shouldn't going to add spam bots the group.

2 & 3 - That should work, maybe an issue with your deploy or configuration of the Bot in the group. Remember that you need to add Admin rights to the Bot for ban users and remove messages in order to make it work properly (also Botfather Group Privacy disabled in order to make the Bot receive messages that are not responses neither commands).

Best Regards :)

DonQuixote202 commented 1 year ago

Thanks. Options 2 and 3 do not work. The only admin permission the bot does not have is posting anonymously.

How do I /setprivacy for @join_captcha_bot with @BotFather? It won't let me /setprivacy in a chat with @BotFather, presumably because I don't own the @join_captcha_bot.

Group Configuration: ———————————————— { "Captcha_Chars_Mode": "nums", "Captcha_Difficulty_Level": 3, "Captcha_Time": 300, "Enabled": false, "Ignore_List": [], "Language": "EN", "Link": "Unknown", "Poll_A": [ "", "", "", "", "", "" ], "Poll_C_A": 0, "Poll_Q": "", "RM_All_Msg": false, "Restrict_Non_Text": 0, "Rm_Result_Msg": false, "Rm_Welcome_Msg": false, "Title": "Group Name", "URL_Enabled": true, "Welcome_Msg": "\[From the moderators\]\n\nThis is a periodic reminder for the group as a whole\. Please adhere to the guidelines: http://tinyurl\\.com/\\.\n\nIf you see a problem or have questions about how to use the group, contact the moderators\.", "Welcome_Time": 60 }

DonQuixote202 commented 1 year ago

Here's a screenshot of @BotFsther telling me I can't /setprivacy on @join_captcha_bot.

Screenshot_20230620_070544_Telegram

J-Rios commented 1 year ago

Hi, sorry I was thinking that you have deployed your own Bot instance... In case you are using the @join_captcha_bot instance, then the privacy mode is already configured.

From the "Group Configuration" that you have provided, I notice that you have the captcha protection disabled in the group, you need to enable it by using the next command: /enable

Anyway, if you provide me the Chat ID of your group (use command /chatid) I can take a look into the logs to check if there is any problem on your group.

J-Rios commented 10 months ago

Closing due no feedback