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

fix +1 issue with first message check #177

Closed umputun closed 1 week ago

umputun commented 1 week ago

The issue leads to checking the first two messages even if the first-only option is set. As a result, it created the impression described in #167.

In fact, a user on the whitelist was blocked due to the count (2) of approved messages instead of the expected 1.

cloudflare-workers-and-pages[bot] commented 1 week ago

Deploying tg-spam with  Cloudflare Pages  Cloudflare Pages

Latest commit: acdedb1
Status: ✅  Deploy successful!
Preview URL: https://527305b1.tg-spam.pages.dev
Branch Preview URL: https://fix-firstmgs-count.tg-spam.pages.dev

View logs