TLG_JoinCaptchaBot
TLG_JoinCaptchaBot copied to clipboard
[Request] Default (cli) configurable groups configs.json
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.
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.
Nope, just template json files somewhere into sources tree. Defaults edit via bot private discussion might be nice also.