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] Configurable Mute and Media Restrictions Time #196

Open J-Rios opened 6 months ago

J-Rios commented 6 months ago

Configurable Mute and Media Restrictions Time

Description

Currently, the commands "/restriction mute" and "/restriction media" apply a fixed restriction of 24h to users that fails the captcha (after this time, the restriction will be automatically removed). Some users are requesting to allow configure the restriction time of this commands.

Example of configurations that are wanted:

/restriction mute - Mute 24h (default)
/restriction mute 48h
/restriction mute 12h
/restriction mute 7d

/restriction media - No-Media for 24h (default)
/restriction media 48h
/restriction media 12h
/restriction media 7d

time formats accepted should be hours (h) and days (d).

The mimum and maximum times to be configured should be:

Minimum - 1h
Maximum - 30d