Telegram Anti-Spam Bot Optimization Strategies
Previously, in order to prevent spam bots, I developed two Telegram bots for GPT.
One is for verification when joining a group.
https://github.com/crazypeace/tg-join-group-exam-bot
The other is for verification when sending messages.
https://github.com/crazypeace/tg-send-msg-exam-bot
After using them for a while, they indeed work very well at preventing spam.
However, some group members complained that after two consecutive verifications, the bot functionality broke. No one realized that these are two different bots.
I thought about it
and made a very small optimization.
Generally speaking, automatically spamming bots are newly registered, with an ID number greater than 8,000,000,000.
Therefore, the message verification bot only requires verification once for these large-ID users.
Users with an ID number less than 2,000,000,000 registered for Telegram relatively early, and we trust they won't randomly send messages.
Therefore, the group join verification bot exempts these users from verification.
These two modifications are very minor and specific, so I didn't upload them to Github
========

