返回顶部
t

telegram-group-chat

Smart group chat reply logic for Telegram. Use when managing Telegram group interactions to avoid spam while staying helpful. Triggers on: group message handling, Telegram bot configuration, reply policy setup, multi-bot group chats, @mention handling, avoiding bot loops.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
91
下载量
0
收藏
概述
安装方式
版本历史

telegram-group-chat

# Telegram Group Chat - Smart Reply Logic This skill provides intelligent reply judgment for Telegram group chats. The goal: **be helpful without spamming** — reply when valuable, stay silent when unnecessary. ## Core Principle **Quality > Quantity.** If you wouldn't send it in a real group chat with friends, don't send it. ## Reply Judgment Rules ### ✅ Respond When (ANY one) 1. **@mentioned** — Must reply when @mentioned by username 2. **Questions detected** — Message contains `?` `?` or question words: - Chinese: 什么/怎么/为什么/如何/哪里/谁 - English: what/how/why/where/who/which/when 3. **Called by name** — Message contains your name (e.g., "Echo") 4. **Technical topics** — You can help with: code, api, config, error, bug, deploy, bot, openclaw, telegram, webhook, token 5. **Priority user** — Messages from configured priority users (e.g., your human) ### ❌ Skip Reply When (ANY one) 1. **Other bots** — `from.is_bot == true` (avoids bot infinite loops) 2. **Only emoji** — No text content, just emoji 3. **Too short** — <3 Chinese characters OR <1 English word 4. **Small talk** — Without @: 早安/晚安/吃了吗/hello/hi/hey/good morning 5. **Cooldown active** — Same topic replied within 5 minutes ## Implementation: NO_REPLY Mechanism 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. ## Configuration Template Add to your `AGENTS.md` or workspace config: ```markdown ### 💬 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` ``` ## Example Scenarios | 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) | ## Multi-Bot Groups When multiple OpenClaw bots are in the same group: 1. **Each bot needs independent config** — Same rules, different instances 2. **Avoid bot loops** — Never reply to other bots' messages 3. **Use @ for directed questions** — "@BotA 和 @BotB 你们觉得呢?" 4. **Stagger responses** — If multiple bots could reply, let the most relevant one respond ## Testing Checklist - [ ] @mention triggers reply - [ ] Questions trigger reply - [ ] Emoji-only messages skipped - [ ] Other bot messages skipped - [ ] Cooldown prevents spam - [ ] `NO_REPLY` not sent to chat ## Related - OpenClaw Telegram channel docs: `~/.npm-global/lib/node_modules/openclaw/docs/channels/telegram.md` - NO_REPLY pattern: Built into OpenClaw gateway

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 telegram-group-chat-1776027423 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 telegram-group-chat-1776027423 技能

通过命令行安装

skillhub install telegram-group-chat-1776027423

下载 Zip 包

⬇ 下载 telegram-group-chat v1.0.0

文件大小: 2.54 KB | 发布时间: 2026-4-13 12:18

v1.0.0 最新 2026-4-13 12:18
Telegram group chat reply logic skill – first release:

- Introduces smart, context-aware reply rules to make Telegram group bots helpful without spamming.
- Replies only to @mentions, questions, technical topics, direct name use, and priority users.
- Skips replies to other bots, emoji-only, very short, or small-talk messages, and prevents repeat replies within 5 minutes.
- Enforces strict NO_REPLY mechanism for silent processing without chat clutter.
- Provides clear multi-bot guidelines and integration/config templates for setup.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部