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
532 stars 218 forks source link

[Request] Configurable welcome message deletion time #155

Closed toxi22 closed 2 years ago

toxi22 commented 2 years ago

Is it possible to set a different value than 1 minute? For example, 5 minutes, 10 minutes (how is it done with captcha)? Since, if the user has a slow Internet, then the chat correspondence is displayed with a long delay, more than 1 minute in the flesh and the user does not have time to see the welcome message. I have personally experienced this several times.

By default, leave 1 minute, but allow the administrator to change this value through the bot settings.

J-Rios commented 2 years ago

Request implemented.

Added support to configure the welcome message automatic deletion time: https://github.com/J-Rios/TLG_JoinCaptchaBot/commit/423dada7ce1a974567cf8e6f6cc2b7256a521b1a

This functionality will be available on current deployed Bots on next Bot version update (maybe after a couple of weeks). Then, you will be able to configure the welcome message time through the command /welcome_msg_time.

Examples:

Delete welcome message after 30 seconds: /welcome_msg_time 30 sec

Delete welcome message after 5 minutes: /welcome_msg_time 5 min

Delete welcome message after 1 minute: /welcome_msg_time 1 min

J-Rios commented 2 years ago

Finally, deployed @join_captcha_bot and @pro_join_captcha_bot bots has been updated to the new version that includes this new functionality. Now you should be able to configure the welcome message delete time on each group through the /welcome_msg_time command. Please check it and give some feedback.

Have a nice day.