mxssl / tg-captcha-bot

Telegram Сaptcha Bot
https://t.me/cloud_tg_captcha_bot
MIT License
264 stars 87 forks source link

Enhancement: remove failed validation notification after timeout #15

Open ivdok opened 3 years ago

ivdok commented 3 years ago

Our chat group has recently been hit by a spam bot wave (30+ and counting at the moment), and while this bot works perfectly fine against them, unfortunately it doesn't clean up after itself, resulting in a humongous wall of "User didn't pass the validation and was banned." messages. It'd be great if @cloud_tg_captcha_bot or on-prem instance could clean up after itself, with 30 minutes timeout by default, or even configurable, if it's easy to implement.

mxssl commented 3 years ago

Thank you for a great issue! I will think about how it can be implemented.

As a temporary solution, you can use this parameter in the configuration: https://github.com/mxssl/tg-captcha-bot/blob/master/config.toml#L15

It deletes "User didn't pass the validation and was banned" messages.

muzzol commented 1 year ago

can we activate this for public instance?

I love the bot but there's a lot of messages like this one "User didn't pass the validation and was banned."