Install
openclaw skills install telegram-group-chatManages Telegram group chat replies by responding to @mentions, questions, name calls, technical topics, or priority users while preventing spam and bot loops.
openclaw skills install telegram-group-chatThis skill provides intelligent reply judgment for Telegram group chats. The goal: be helpful without spamming — reply when valuable, stay silent when unnecessary.
Quality > Quantity. If you wouldn't send it in a real group chat with friends, don't send it.
? ? or question words:
from.is_bot == true (avoids bot infinite loops)When skipping a reply, respond with ONLY:
NO_REPLY
OpenClaw treats this as a silent ack — the message is processed but not sent to the chat.
Important: NO_REPLY must be your ENTIRE response. Never append it to actual replies.
Add to your AGENTS.md or workspace config:
### 💬 Group Chat Reply Rules (Telegram: YOUR_GROUP_ID)
**Respond when (any one):**
- @mentioned (must reply)
- Message contains questions (`?` `?` or 什么/怎么/为什么/how/what/why)
- Called by name: "YourName"
- Technical topics (code, api, config, error, bug, bot, openclaw, telegram)
- Messages from priority user `USER_ID`
**Skip reply when (any one):**
- From other bots (`from.is_bot == 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, respond with ONLY `NO_REPLY`
| Message | Should Reply? | Reason |
|---|---|---|
| "@Echo 怎么配置 Telegram bot?" | ✅ Yes | @mention + question |
| "有人知道 API 怎么调吗?" | ✅ Yes | Question + technical |
| "Echo 你觉得呢?" | ✅ Yes | Called by name |
| "早安大家" | ❌ No | Small talk without @ |
| "👍" | ❌ No | Only emoji |
| "好" | ❌ No | Too short |
| (Bot message) "Welcome!" | ❌ No | From other bot |
| "刚才那个问题还有人吗?" | ❌ No | Replied 3min ago (cooldown) |
When multiple OpenClaw bots are in the same group:
NO_REPLY not sent to chat~/.npm-global/lib/node_modules/openclaw/docs/channels/telegram.md