运行时依赖
安装命令
点击复制技能文档
Telegram Group Chat - Smart Reply 记录ic
This 技能 provides intelligent reply judgment for Telegram group chats. The goal: be helpful without spamming — reply when valuable, stay silent when unnecessary.
Core Principle
质量 > Quantity. If you wouldn't 发送 it in a real group chat with friends, don't 发送 it.
Reply Judgment Rules ✅ 响应 When (ANY one) @mentioned — Must reply when @mentioned by username Questions 检测ed — Message contAIns ? ? or question words: Chinese: 什么/怎么/为什么/如何/哪里/谁 English: what/how/why/where/who/which/when Called by name — Message contAIns your name (e.g., "Echo") Technical topics — You can help with: code, API, config, error, bug, 部署, 机器人, OpenClaw, telegram, 网页hook, 令牌 Priority user — Messages from 配置d priority users (e.g., your human) ❌ Skip Reply When (ANY one) Other 机器人s — from.is_机器人 == true (avoids 机器人 infinite loops) Only emoji — No text content, just emoji Too short — <3 Chinese characters OR <1 English word Small talk — Without @: 早安/晚安/吃了吗/hello/hi/hey/good morning Cooldown active — Same topic replied within 5 minutes Implementation: NO_REPLY Mechanism
When skipping a reply, 响应 with ONLY:
NO_REPLY
OpenClaw treats this as a silent ack — the message is processed but not sent to the chat.
导入ant: NO_REPLY must be your ENTIRE 响应. Never 应用end it to actual replies.
Configuration Template
添加 to your 代理S.md or workspace config:
💬 Group Chat Reply Rules (Telegram: YOUR_GROUP_ID)
响应 when (any one):
- @mentioned (must reply)
- Message contAIns questions (
??or 什么/怎么/为什么/how/what/why) - Called by name: "YourName"
- Technical topics (code, API, config, error, bug, 机器人, OpenClaw, telegram)
- Messages from priority user
USER_ID
Skip reply when (any one):
- From other 机器人s (
from.is_机器人 == true) - Only emoji, no text
- Too short (<3 Chinese chars or <1 English word)
- Small talk without @ (早安/晚安/吃了吗/hello/hi)
- Same topic replied within 5 minutes (cooldown)
Silent reply: When skipping, 响应 with ONLY NO_REPLY
Example Scenarios Message Should Reply? Reason "@Echo 怎么配置 Telegram 机器人?" ✅ Yes @mention + question "有人知道 API 怎么调吗?" ✅ Yes Question + technical "Echo 你觉得呢?" ✅ Yes Called by name "早安大家" ❌ No Small talk without @ "👍" ❌ No Only emoji "好" ❌ No Too short (机器人 message) "Welcome!" ❌ No From other 机器人 "刚才那个问题还有人吗?" ❌ No Replied 3min ago (cooldown) Multi-机器人 Groups
When multiple OpenClaw 机器人s are in the same group:
Each 机器人 needs independent config — Same rules, different instances Avoid 机器人 loops — Never reply to other 机器人s' messages Use @ for directed questions — "@机器人A 和 @机器人B 你们觉得呢?" Stagger 响应s — If multiple 机器人s could reply, let the most relevant one 响应 测试 检查列出 @mention triggers reply Questions trigger reply Emoji-only messages skipped Other 机器人 messages skipped Cooldown 预防s spam NO_REPLY not sent to chat Related OpenClaw Telegram channel docs: ~/.npm-global/lib/node_模块s/OpenClaw/docs/channels/telegram.md NO_REPLY pattern: Built into OpenClaw gateway