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 fr...

电报防广告机器人 新成员入群时ID小于2B免验证 在群内发言时ID小于8B免验证

之前, 为了防广告机器人, 我面向GPT开发了两个电报telegram机器人. 一个是加群时的验证. https://github.com/crazypeace/tg-join-group-exam-bot 一个是发言时的验证. https://github.com/crazypeace/tg-send-msg-exam-bot 用了一段时间, 确实防广告的效果很好.  但是, 也有群友报怨说, 连着验证2次 机器人功能坏了. 没人想到这是两个不同的机器人.

Telegram Bot Sends Stickers Without Group Membership

在 https://t.me/sing_box_community 公开群中,  https://t.me/threecolordummy 用户 不是 群成员member 但是我发现 TA 可以在群里发送贴纸 @sing_box_community 这个群组是公开 member 的, 你可以通过搜索用户ID, 来查证这一点. 你也可以通过查看你与 @threecolordummy 的共同群组, 来查证这一点. (如果你已经加入了 @sing_box_community 群的话) 这个 @threecolordummy 会自动"回应" 关键字 来发送贴纸 naive 三色图 ✌ 这个 @threecolordummy 设置了1小时的冷却时间, 所以如果上一次发贴纸在1小时以内, 那么出现关键字不会触动 发贴纸 的响应. 到 2025/12/14 8:36 为止 @sing_box_community 群里搜索 @threecolordummy 只剩下了1个 2025-11-22 的关于cloudflare的贴纸. 我发送一个 ✌ 作为测试 (测试时刻为 8:48) ======== 相关推荐 《Win环境下编译 Forkgram 安装Visual Studio 2022 C++桌面开发 Python Git》 《通过Giffgaff号码申请Wechat账号 零零碎碎的一些使用体验 2023-11》 《翻墙学习交流群》

电报telegram 不是公开群组的群成员也可以发送贴纸?

在 https://t.me/sing_box_community 公开群中,  https://t.me/threecolordummy 用户 不是 群成员member 但是我发现 TA 可以在群里发送贴纸 @sing_box_community 这个群组是公开 member 的, 你可以通过搜索用户ID, 来查证这一点. 你也可以通过查看你与 @threecolordummy 的共同群组, 来查证这一点. (如果你已经加入了 @sing_box_community 群的话) 这个 @threecolordummy 会自动"回应" 关键字 来发送贴纸 naive 三色图 ✌ 这个 @threecolordummy 设置了1小时的冷却时间, 所以如果上一次发贴纸在1小时以内, 那么出现关键字不会触动 发贴纸 的响应. 到 2025/12/14 8:36 为止 @sing_box_community 群里搜索 @threecolordummy 只剩下了1个 2025-11-22 的关于cloudflare的贴纸. 我发送一个 ✌ 作为测试 (测试时刻为 8:48) ======== 相关推荐 《Win环境下编译 Forkgram 安装Visual Studio 2022 C++桌面开发 Python Git》 《通过Giffgaff号码申请Wechat账号 零零碎碎的一些使用体验 2023-11》 《翻墙学习交流群》

Highlight Form Fields with a Tampermonkey Userscript

Preface When purchasing a VPS, there are times when you need to fill in personal information. We often look for a web page that generates random American information. I had an idea: I wanted to quickly and easily know which piece of information goes where. GPT-Oriented Development There is an HTML page like this The page may contain "first name", or it may contain "first name" in the placeholder attribute of the input element I need to find and highlight these "first name"s Send these requirements to GPT. The result generated by GPT was split into two parts: CSS and JS script. So I made another request to GPT Need to be integrated into a js file that can be executed in the browser's console GPT generated an integrated JS file. Test it in the Console of the browser's F12 Developer Tools. For the RackNerd registration page, the effect is a red border. For the American information page, the effect is yellow text background color * Note: on this page, ...

在 VPS 注册页面 和 美国人信息页面 高亮显示关键字 油猴篡改猴tampermonkey脚本

前言 在购买VPS的时候, 会遇到需要填写个人信息的时候. 我们常常会找一个生成随机美国人信息的网页. 我有一个想法, 希望快速方便的知道哪个信息填写到哪里. 面向GPT开发 有这样一个HTML页面 页面中可能包含 "first name", 也有可能 是在 input元素的 placeholder 属性中包含 "first name" 我需要查找并高亮这些 "first name"  把这些需求发给GPT. GPT生成的结果分为了CSS和JS脚本两部分. 于是再向GPT提要求 需要整合为可以在浏览器的 console 执行的 js 文件  GPT生成了一个整合的JS文件. 在浏览器 F12 开发者工具的Console中进行测试. 对于 RackNerd 的注册页面, 效果为红色边框. 对于美国人信息页面, 效果为黄色文字底色 * 注意, 此页面上, 写的是 Firstname 而不是 First name. 代码需作一点修改. 在有一些 美国人信息页面上, 没有 Firstname 这样的内容, 只有 Full name 所以我们向GPT继续提出修改意见. 把 first name, firstname, full name, fullname, 全名, 姓名 归为一类, 显示同样的高亮颜色或边框颜色. 对于同一类关键字, 边框颜色和文字底色颜色应该一致. 测试, 结果可以了. 接下来, 把这个结果推广到其它信息, 并且要求不同类的信息, 使用不同的颜色. 把 first name, firstname, last name, lastname, full name, fullname, 全名, 姓名 归为一类, 显示同样的高亮颜色或边框颜色. 把 phone number, phone, 电话 归为一类. 把 street address, street, 街道地址, 街道 归为一类. 把 city, 城市 归为一类. 把 full state name, state, 州全称, 州 归为一类. 把 postcode, zip code, 邮编, 归为一类. 以上每一类, 都要使用独特鲜明的颜色, 不应该与其它任何一类颜色相同. GPT返回的结果, 在浏览器console中测试. 效果不错. 用油猴插件...