umputun / tg-spam

Anti-Spam bot for Telegram and anti-spam library
https://tg-spam.umputun.dev
MIT License
221 stars 39 forks source link

Softbans: unbanning doesn't remove all restrictions #149

Closed dsent closed 1 month ago

dsent commented 1 month ago

When the bot is in the softban mode, clicking on "change ban" and unbanning a user wrongly detected as spammer, doesn't remove the restriction enacted by the bot. Workaround: manually remove restrictions set by the bot after unbanning.

dsent commented 1 month ago

It seems that the bot does remove some restrictions, but the restriction entries remain in the list. Next time I unban someone, I'll try to see what restrictions in particular remain active after unban.

dsent commented 1 month ago

Okay, a bit more details. Here is the original restriction change done by the bot when I press "unban": image And here is the change that happened when I removed the remaining entry from the list of restrictions: image

umputun commented 1 month ago

Good catch. There was a mismatch between banned and unbanned permissions; they should be identical now. In a few moments, as the matter is built, you can give it a try.

umputun commented 1 month ago

released with v1.14.0