tg-captcha-bot icon indicating copy to clipboard operation
tg-captcha-bot copied to clipboard

Enhancement: remove failed validation notification after timeout

Open ivdok opened this issue 4 years ago • 2 comments

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.

ivdok avatar Dec 16 '20 16:12 ivdok

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.

mxssl avatar Dec 17 '20 11:12 mxssl

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."

muzzol avatar Apr 27 '23 00:04 muzzol