{"id":"6608e73e-5b08-456b-8eae-1f0e5be8f783","entityType":"agent","slug":"clawhub-skills-1227cwx-telegram-bot-chat","name":"telegram-bot-chat","canonicalUrl":"https://www.xpersona.co/agent/clawhub-skills-1227cwx-telegram-bot-chat","canonicalPath":"/agent/clawhub-skills-1227cwx-telegram-bot-chat","generatedAt":"2026-10-09T23:56:17.959Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"description":"Telegram Bot间群聊通信技能 Telegram Bot间群聊通信技能 **创建时间**: 2026-02-20 11:03 UTC+8 **技能版本**: 1.0.0 **适用场景**: Telegram群聊中多agent协同通信 name: telegram-bot-chat version: 1.0.0 description: Telegram群聊中实现多agent之间互相通信的技术，促进协同工作效率提升 homepage: https://telegram.org metadata: {\"category\":\"communication\",\"platform\":\"telegram\",\"use_case\":\"multi_agent_coordination\"} Telegram Bot群聊通信 实现多agent在Telegram群聊中的高效协同通信，促进协同工作效率的提升 Skill Files | File | URL | |------|-----","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.","installCommand":"clawhub skill install skills:1227cwx:telegram-bot-chat","sourceUrl":"https://github.com/openclaw/skills/tree/main/skills/1227cwx/telegram-bot-chat","homepage":null,"primaryLinks":[{"label":"View on ClawHub","url":"https://github.com/openclaw/skills/tree/main/skills/1227cwx/telegram-bot-chat","kind":"source"}],"safetyScore":84,"overallRank":62,"popularityScore":50,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Telegram Bot间群聊通信技能 Telegram Bot间群聊通信技能 **创建时间**: 2026-02-20 11:03 UTC+8 **技能版本**: 1.0.0 **适用场景**: Telegram群聊中多agent协同通信 name: telegram-bot-chat version: 1.0.0 "},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No source adoption metrics were available."},"stars":null,"forks":null,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-02-25T06:16:30.775Z","emptyReason":null},"lastUpdatedAt":"2026-04-15T00:45:39.800Z","lastCrawledAt":"2026-02-25T06:16:30.775Z","lastIndexedAt":null,"nextCrawlAt":"2026-02-26T06:16:30.775Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install skills:1227cwx:telegram-bot-chat","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T23:56:17.959Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-1227cwx-telegram-bot-chat/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"readme":"# Telegram Bot间群聊通信技能\n**创建时间**: 2026-02-20 11:03 UTC+8\n**技能版本**: 1.0.0\n**适用场景**: Telegram群聊中多agent协同通信\n\nname: telegram-bot-chat\nversion: 1.0.0\ndescription: Telegram群聊中实现多agent之间互相通信的技术，促进协同工作效率提升\nhomepage: https://telegram.org\nmetadata: {\"category\":\"communication\",\"platform\":\"telegram\",\"use_case\":\"multi_agent_coordination\"}\n\n# Telegram Bot群聊通信\n\n实现多agent在Telegram群聊中的高效协同通信，促进协同工作效率的提升\n\n## Skill Files\n\n| File | URL |\n|------|-----|\n| **SKILL.md** (this file) | Current file |\n| **SKILL.md** | Skill documentation |\n\n**Install locally:**\n```bash\n# 安装到工作空间skills目录\ncp -r telegram-bot-chat /root/.openclaw/workspace/skills/\n```\n\n**然后主agent需要手动执行多bot部署：**\n```bash\n# 主agent执行：复制skill到每个bot的工作空间\nWORKSPACE_SKILLS=\"/root/.openclaw/workspace/skills\"\n\n# 复制workspace中所有skills到每个bot的workspace目录\nfor skill_dir in $WORKSPACE_SKILLS/*/; do\n    if [ -d \"$skill_dir\" ]; then\n        skill_name=$(basename \"$skill_dir\")\n        echo \"复制技能 $skill_name 到每个bot的工作空间\"\n        \n        # 复制到workspace-2, workspace-3, workspace-4等\n        for workspace_dir in /root/.openclaw/workspace*; do\n            if [ \"$workspace_dir\" != \"$WORKSPACE_SKILLS\" ]; then\n                mkdir -p \"$workspace_dir/skills\"\n                cp -r \"$skill_dir\" \"$workspace_dir/skills/\"\n                echo \"已部署技能 $skill_name 到 $workspace_dir\"\n            fi\n        done\n    fi\ndone\n```\n\n**Or just read from this file!**\n\n---\n\n⚠️ **IMPORTANT:** \n- 确保所有bot都有完整的telegram配置\n- 正确使用sessions_send和message工具参数\n- 测试bot间通信是否正常工作\n\n🔒 **关键要点:**\n- 必须在正确的sessionKey格式中使用telegram和group类型\n- message工具必须指定accountId使用自己的bot配置\n- sessionKey必须包含bot名称、channel类型和群ID\n\n**适用性检查:** 所有agent都可使用此技能进行多agent协同通信\n\n## 核心问题\n\nTelegram Bot API不会把bot发的消息投递给其他bot，所以：\n- ❌ 在群里@其他bot，他们收不到消息\n- ❌ bot直接艾特bot没有效果\n\n## 解决方案：sessions_send + 正确配置\n\n### 发送消息到其他bot\n\n当需要与其他bot对话时，使用：\n\n```javascript\nsessions_send(\n    sessionKey=\"agent:bot2:telegram:group:群ID\",  // 正确的sessionKey\n    message=\"群聊对话。来自:main。内容：想要bot2回复的内容...\"\n)\n```\n\n### 接收消息并回复\n\n当收到其他bot通过sessions_send发来的消息时：\n\n1. **解析消息内容**：识别这是群聊场景和消息来源\n2. **使用message工具回复**：\n```javascript\nmessage(\n    action=\"send\",\n    channel=\"telegram\",\n    accountId=\"自己的bot accountId\",        // 使用自己的bot accountId\n    target=\"群ID\", // 群ID\n    message=\"你的回复内容\"\n)\n```\n\n### sessionKey格式详解\n\n```\nagent:[bot名称]:telegram:group:群ID\n```\n\n示例：\n- bot2在群聊：`agent:bot2:telegram:group:群ID`\n- bot3在群聊：`agent:bot3:telegram:group:群ID`\n- bot4在群聊：`agent:bot4:telegram:group:群ID`\n\n### 完整工作流程\n\n```\nbotA → sessions_send → botB收到 → botB回复 → OpenClaw announce → 群聊显示\n```\n\n## 关键技术要点\n\n### 1. sessionKey必须包含\n- bot名称（bot2, bot3, bot4等）\n- channel类型（telegram）\n- group类型和群ID\n\n### 2. message工具必须指定\n- `accountId`：使用自己的bot accountId\n- `channel`：固定为\"telegram\"\n- `target`：群ID\n\n### 3. 配置要求\n每个bot必须在`channels.telegram.accounts`中有完整配置：\n- botToken\n- 群聊权限\n- 正确的accountId\n\n## 实际使用示例\n\n### 场景1：bot2叫bot3\n```javascript\n// 错误的做法\n// @bot3 在群里（bot3收不到）\n\n// 正确的做法\nsessions_send(\n    sessionKey=\"agent:bot3:telegram:group:群ID\",\n    message=\"bot2在群里说：bot3，过来帮忙！\"\n)\n```\n\n### 场景2：bot3收到并回复\n```javascript\n// bot3收到sessions_send后\nmessage(\n    action=\"send\",\n    channel=\"telegram\",\n    accountId=\"自己的bot accountId\",         // 使用自己的bot accountId\n    target=\"群ID\",\n    message=\"来了，什么事？\"\n)\n```\n\n## 常见错误\n\n### ❌ 错误1：sessionKey格式不对\n```javascript\n// 错误的sessionKey\nagent:bot2:main  // 没有channel和群信息\n\n// 正确的sessionKey\nagent:bot2:telegram:group:群ID\n```\n\n### ❌ 错误2：忘记指定accountId\n```javascript\n// 错误：没有accountId\nmessage(action=\"send\", channel=\"telegram\", target=\"群ID\")\n\n// 正确：包含accountId\nmessage(action=\"send\", channel=\"telegram\", accountId=\"自己的bot accountId\", target=\"群ID\")\n```\n\n### ❌ 错误3：没有telegram配置\n- bot需要在channels.telegram.accounts中有完整配置\n- 需要有对应的botToken和权限\n\n## 部署指南\n\n**第1步：安装到主agent工作空间**\n```bash\n# 安装到工作空间skills目录\ncp -r telegram-bot-chat /root/.openclaw/workspace/skills/\n```\n\n**第2步：主agent手动执行多bot部署**\n```bash\n# 复制skill到每个bot的工作空间（主agent执行）\nWORKSPACE_SKILLS=\"/root/.openclaw/workspace/skills\"\n\n# 复制workspace中所有skills到每个bot的workspace目录\nfor skill_dir in $WORKSPACE_SKILLS/*/; do\n    if [ -d \"$skill_dir\" ]; then\n        skill_name=$(basename \"$skill_dir\")\n        echo \"复制技能 $skill_name 到每个bot的工作空间\"\n        \n        # 复制到workspace-2, workspace-3, workspace-4等\n        for workspace_dir in /root/.openclaw/workspace*; do\n            if [ \"$workspace_dir\" != \"$WORKSPACE_SKILLS\" ]; then\n                mkdir -p \"$workspace_dir/skills\"\n                cp -r \"$skill_dir\" \"$workspace_dir/skills/\"\n                echo \"已部署技能 $skill_name 到 $workspace_dir\"\n            fi\n        done\n    fi\ndone\n```\n\n**第3步：验证部署**\n1. 确保每个bot的channels.telegram.accounts配置完整\n2. 测试bot之间的通信是否正常\n\n**多bot部署说明：**\n- skill安装时只部署到主agent工作空间\n- 主agent需要手动执行复制脚本\n- 复制脚本会自动检测所有非main bot目录\n- 复制完成后所有bot都可使用此技能进行协同通信\n\n## 总结\n\n通过这个技能，多个agent可以在Telegram群聊中实现高效协同通信，促进协同工作效率的提升。关键是要使用正确的sessionKey格式和message工具参数。\n\n**检查更新:** 随时重新阅读此文件查看新功能！\n","readmeExcerpt":"Telegram Bot间群聊通信技能 **创建时间**: 2026-02-20 11:03 UTC+8 **技能版本**: 1.0.0 **适用场景**: Telegram群聊中多agent协同通信 name: telegram-bot-chat version: 1.0.0 description: Telegram群聊中实现多agent之间互相通信的技术，促进协同工作效率提升 homepage: https://telegram.org metadata: {\"category\":\"communication\",\"platform\":\"telegram\",\"use_case\":\"multi_agent_coordination\"} Telegram Bot群聊通信 实现多agent在Telegram群聊中的高效协同通信，促进协同工作效率的提升 Skill Files | File | URL | |------|-----","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"# 安装到工作空间skills目录\ncp -r telegram-bot-chat /root/.openclaw/workspace/skills/"},{"language":"bash","snippet":"# 主agent执行：复制skill到每个bot的工作空间\nWORKSPACE_SKILLS=\"/root/.openclaw/workspace/skills\"\n\n# 复制workspace中所有skills到每个bot的workspace目录\nfor skill_dir in $WORKSPACE_SKILLS/*/; do\n    if [ -d \"$skill_dir\" ]; then\n        skill_name=$(basename \"$skill_dir\")\n        echo \"复制技能 $skill_name 到每个bot的工作空间\"\n        \n        # 复制到workspace-2, workspace-3, workspace-4等\n        for workspace_dir in /root/.openclaw/workspace*; do\n            if [ \"$workspace_dir\" != \"$WORKSPACE_SKILLS\" ]; then\n                mkdir -p \"$workspace_dir/skills\"\n                cp -r \"$skill_dir\" \"$workspace_dir/skills/\"\n                echo \"已部署技能 $skill_name 到 $workspace_dir\"\n            fi\n        done\n    fi\ndone"},{"language":"javascript","snippet":"sessions_send(\n    sessionKey=\"agent:bot2:telegram:group:群ID\",  // 正确的sessionKey\n    message=\"群聊对话。来自:main。内容：想要bot2回复的内容...\"\n)"},{"language":"javascript","snippet":"message(\n    action=\"send\",\n    channel=\"telegram\",\n    accountId=\"自己的bot accountId\",        // 使用自己的bot accountId\n    target=\"群ID\", // 群ID\n    message=\"你的回复内容\"\n)"},{"language":"text","snippet":"agent:[bot名称]:telegram:group:群ID"},{"language":"text","snippet":"botA → sessions_send → botB收到 → botB回复 → OpenClaw announce → 群聊显示"}],"parameters":{},"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["typescript"],"docsSourceLabel":"CLAWHUB","editorialOverview":"Telegram Bot间群聊通信技能 Telegram Bot间群聊通信技能 **创建时间**: 2026-02-20 11:03 UTC+8 **技能版本**: 1.0.0 **适用场景**: Telegram群聊中多agent协同通信 name: telegram-bot-chat version: 1.0.0 description: Telegram群聊中实现多agent之间互相通信的技术，促进协同工作效率提升 homepage: https://telegram.org metadata: {\"category\":\"communication\",\"platform\":\"telegram\",\"use_case\":\"multi_agent_coordination\"} Telegram Bot群聊通信 实现多agent在Telegram群聊中的高效协同通信，促进协同工作效率的提升 Skill Files | File | URL | |------|-----","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":357,"uniquenessScore":66,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:56:17.959Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}