umputun / tg-spam

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

[enhancement] Add hash images blacklist #151

Closed TuskarMA closed 1 month ago

TuskarMA commented 1 month ago

Some spammers only post images, while our Telegram chat has specific topics for users to share images. Why not implement a simple check that computes the MD5 hash of each image and compares it against an existing blacklist?

umputun commented 1 month ago

It doesn't sound too hard to implement; however, I'm not aware of "an existing blacklist." Do you have some examples of those lists publicly available?

TuskarMA commented 1 month ago

We use our own list for moderation in Discord. Unfortunately, I cannot provide the list of hashes, and I don't think it would be useful for Telegram either, due to the specific nature of spam images we handle. However, it would be great to have the ability to add these images dynamically via the web UI as well