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

[Question] Can't apply custom welcome message #138

Closed aleksandr-oliferuk closed 2 years ago

aleksandr-oliferuk commented 2 years ago

Hello!

I can't change welcome message nor from bot commands, neither from data/chats/.../configs.json file. Welcome message still default.

Mine configs.json:

{
    "Title": "chat_name",
    "Link": "link",
    "Language": "RU",
    "Enabled": true,
    "Captcha_Chars_Mode": "nums",
    "Captcha_Time": 300,
    "Captcha_Difficulty_Level": 2,
    "Restrict_Non_Text": 0,
    "Rm_Result_Msg": true,
    "Rm_Welcome_Msg": true,
    "Poll_Q": "",
    "Poll_A": [
        "",
        "",
        "",
        "",
        "",
        ""
    ],
    "Poll_C_A": 0,
    "Wlecome_Msg": "SOME CUSTOM TEXT",
    "Ignore_List": []
}

Bot version is 1.23.3 (25/09/2021) Running on raspbian:

root@raspberrypi:~# lsb_release -cs
bullseye
root@raspberrypi:~# uname -a
Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux

What am I do wrong?

J-Rios commented 2 years ago

Hi,

There is no issue in that version for config Welcome message... Maybe could be related to your system deployment...

Some Questions:

Best Regards.

aleksandr-oliferuk commented 2 years ago

Hi,

Thanks for your reply!

Best Regards.

J-Rios commented 2 years ago

The user still receives the default welcome message

Well, maybe here is the confussion, there is no a "default welcome message", there is a captcha message that can't be modified, and after captcha is solved, then the custom welcome message appears. Also, the welcome message is automatically removed after a while (1 min or so), if the /remove_welcome_msg is enabled (default).

Check if when user solve the captcha, your custom welcome message appear at this time...

About why "Custom Welcome Message" is a new message after captcha solve:
https://github.com/J-Rios/TLG_JoinCaptchaBot/issues/4

aleksandr-oliferuk commented 2 years ago

I get it now, thank you!