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

[Request] Default (cli) configurable groups configs.json #146

Open uduntuntu opened 2 years ago

uduntuntu commented 2 years ago

I just want to add default poll questions for my bot. It's irritating to remember every time to add

/captcha_poll question <question>
/captcha_poll option 1 <option 1>
/captcha_poll option 2 <option 2>
/captcha_poll correct_option <number of correct option>
/captcha_mode poll

/welcome_msg <message>

example config.json:

~/TLG_JoinCaptchaBot/sources$ cat data/chats/-1001115432082/configs.json
{
    "Title": "PPFI - Verkkopalveluiden helpdesk",
    "Link": "Unknown",
    "Language": "EN",
    "Enabled": true,
    "URL_Enabled": true,
    "RM_All_Msg": false,
    "Captcha_Chars_Mode": "poll",
    "Captcha_Time": 300,
    "Captcha_Difficulty_Level": 2,
    "Restrict_Non_Text": 0,
    "Rm_Result_Msg": true,
    "Rm_Welcome_Msg": true,
    "Poll_Q": "Miten piraatti sanoo? How could the Pirate say?",
    "Poll_A": [
        "I'm a bot. Olen botti.",
        "Yarr!",
        "",
        "",
        "",
        ""
    ],
    "Poll_C_A": 2,
    "Welcome_Msg": "Hei {0}, tervetuloa ryhmään\\! Muista käyttäytyä\\.\nHi {0}, welcome to the group and remember to behave\\.",
    "Ignore_List": []

As a Finnish Pirate Party admin team we need to moderate 50+ Telegram groups.

J-Rios commented 2 years ago

Hi,

So, you are requesting to implement some command line interface to configure config.json files from the host machine without using Telegram interface (in your own Bot deployment instance/s)?

Regards.

uduntuntu commented 2 years ago

Nope, just template json files somewhere into sources tree. Defaults edit via bot private discussion might be nice also.