umputun / tg-spam

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

[Improvement] Forward images/media to admin group when banned by meta #181

Open dsent opened 20 hours ago

dsent commented 20 hours ago

The title is basically it. It's hard to distinguish false positives when a user is banned for the image without text, as there's no image forwarded to admin group. You have to dig into recent actions in the main group and match the time to figure out what's what.

dsent commented 20 hours ago

This probably deserves a separate issue, but it's also impossible to unban/ban for real (after a softban) a spammer marked for images without text. You just get this:

error: failed confirmation ban: failed to get clean message: no original message found in callback msgsData: "permanently banned {---}\n\nspam detection results\n- stopword: ham, not found\n- images: spam, images without text\n- cas: ham, record not found\n- message length: ham, too short"

Is there a better way to identify messages internally than searching for message text? Maybe adding some ID to messages in admin group can help that?