Telegram Keyword Monitor Bot with Sticker Reply
Requirement
Want to do an experiment
When detecting the keyword 三色图, send a sticker
Basic Technology
Preparation
Choose a secondary account that won't affect your normal use to send stickers
Apply for api_id, api_hash
Get api_id, api_hash
Approach
To avoid affecting the existing keyword bot,
we let this secondary account follow the channel that the keyword bot outputs to,
when the channel reports that someone sent "三色图" in a group, let this secondary account send a sticker in the same group.
Developing with GPT
已经有这样一个频道
会发布这样的关键字监控信息
#FOUND (https://t.me/c/1958152252/300436) "自建" IN Joey Huang Blog(1958152252) FROM jacky jay(5979280761)
自建的节点怎么不能访问X和chatgpt啊
自建的节点怎么不能访问X和chatgpt啊
也可能是这样的
#FOUND (https://t.me/LoonCommunity/161393) "大佬" IN Loon Community(@LoonCommunity) FROM Yang Bo(@Zen_Neng_Bu_Bian_Tai)
大佬们,loon怎么在不开梯子的情况下去除广告啊?
需要开发一个telegram机器人
当监控频道中出现"三色图"时, 在源群组中发送贴纸.
贴纸为 https://t.me/addstickers/fuckgfwnewbie 的第1个贴纸
Upload to Github
Demo Video
Deployment
========
Postscript
This time (2025-11-07) developing with GPT, the GPT used is
The program generated by GPT has a BUG, getting the plain text of the message
message_text = event.message.message
The correct approach is to extract the markdown text of the message
from telethon.extensions import markdown
message_text = markdown.unparse(event.message.message, event.message.entities)
========

