umputun / tg-spam

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

[enhancement] Add hash images blacklist #151

Closed TuskarMA closed 1 week ago

TuskarMA commented 1 week 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 week 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 week 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