Skip to content

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

Open
@uduntuntu

Description

@uduntuntu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions