{"repo":"Hootrix/keyword_alert_bot","free":true,"listed":false,"github":"https://github.com/Hootrix/keyword_alert_bot","clone":"git clone https://github.com/Hootrix/keyword_alert_bot.git","description":"telegram keyword alert bot ⏰","language":"Python","stars":352,"topics":["telegram-bot","bot","python","telegram","docker","sqlite"],"license":"GPL-3.0","category":"deployment-docker-iac","readme_excerpt":"🤖Telegram keyword alert bot⏰ Telegram关键字提醒机器人，用于实时监测频道/群组中的关键字消息。 确保普通Telegram账户能够在不需要验证的情况下加入指定群组。 Warning: Demo bot使用过载，建议使用 Docker 镜像自部署 👉 Features： - [x] 关键字消息订阅：根据设定的关键字和频道实时推送消息提醒 - [x] 支持正则表达式匹配语法 - [x] 支持多频道订阅 & 多关键字订阅 - [x] 支持订阅群组消息 - [x] 支持私有频道ID/邀请链接的消息订阅 - [x] 支持私有群组订阅 1. https://t.me/+B8yv7lgd9FI0Y2M1 2. https://t.me/joinchat/B8yv7lgd9FI0Y2M1 👉 Todo: - [ ] 私有频道消息提醒完整内容预览 - [ ] 多账号支持 - [ ] 扫描退出无用频道/群组 🔍Demo http://t.me/keyword alert bot 🚀Run 1. 配置文件 config.yml.example -- config.yml 将 config.yml.example 复制到本地并重命名为 config.yml，然后根据下面申请的 api 进行配置 Create Telelgram Account & API 建议使用新Telegram账户开通api 来使用 Create BOT https://t.me/BotFather 创建机器人 2. 🐳Docker 首次运行需要Telegram账户接收数字验证码，并输入密码（Telegram API触发），之后提示success即可 其他 docker镜像更新 避免数据丢失，容器更新前记得把docker中数据备份。如果已经把数据库文件挂载进容器 可以不用 持久化所有数据，避免权限问题 --user root 强制root权限执行 💪Manual Build 运行环境 python3.7+ 📘Usage 普通关键字匹配 正则表达式匹配 使用类似JavaScript正则语法规则，用/包裹正则语句，目前可以使用的匹配模式：i,g Q & A Bug Feedback: https://github.com/Hootrix/keyword alert bot/issues ### 1. You have joined too many channels/supergroups (caused by JoinChannelRequest) BOT中所有订阅频道的总数超过 500。原因是BOT使用的Telegram演示账户限制导致。建议你自行部署 ### 2. sqlite3.OperationalError: unable to open database file 如果是docker镜像启动，由于内部使用nonroot账户 需要授权挂载文件权限 或者直接使用 --user root 参数 ### 3. 查看日志发现个别群组无法接收消息，而软件客户端正常接收 🤔尝试更新telethon到最新版本或者稳定的1.24.0版本 ### 4. 订阅群组消息，机器人没任何反应 https://github.com/Hootrix/keyword alert bot/issues/20 ### 5. 同时存在多关键字如何匹配 ☕ Buy me a coffee [USDT-TRC20]： TDELNhqYjMJvrChjcTBiBBieWYiDGiGm","default_branch":null,"files":null,"tree":[],"storefront":"/r/Hootrix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Hootrix/keyword_alert_bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}