Telegram Bot API operations for forum management. Use for creating/editing/archiving forum topics, setting topic icons, managing Telegram groups via Bot API. Use when archiving channels/topics. Requires bot token from OpenClaw config.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install telegram-ops或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install telegram-ops⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/telegram-ops/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: telegram-ops description: Telegram Bot API operations for forum management. Use for creating/editing/archiving forum topics, setting topic icons, managing Telegram groups via Bot API. Use when archiving channels/topics. Requires bot token from OpenClaw config. ---
Manage Telegram forum topics and Bot API operations.
can_manage_topics permission```bash gateway action=config.get | jq -r '.result.parsed.channels.telegram.botToken' ```
When creating a topic, follow all of these steps:
message_thread_id)openclaw skills list, pick only ready skills that fit the topic's purposecurl -X POST "https://api.telegram.org/bot<TOKEN>/createForumTopic" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <GROUP_ID>,
"name": "topic name"
}'
Returns message_thread_id (the topic ID) -- you need this for all subsequent steps.
curl -X POST "https://api.telegram.org/bot<TOKEN>/editForumTopic" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <GROUP_ID>,
"message_thread_id": <TOPIC_ID>,
"name": "topic name",
"icon_custom_emoji_id": "<EMOJI_ID>"
}'
Patch the config to register the topic with a system prompt:
gateway action=config.patch raw='{"channels":{"telegram":{"groups":{"<GROUP_ID>":{"topics":{"<TOPIC_ID>":{"systemPrompt":"Topic-specific instructions"}}}}}}}'
Topic configs inherit from the parent group -- only specify overrides.
Do NOT add a skills key -- omitting it means all skills are available. Only restrict skills if you have a specific reason to limit the topic's capabilities.
Each topic gets its own isolated OpenClaw session:
agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>
Each session has independent conversation history, context window, and compaction.
| Emoji | ID | Use Case | |-------|-----|----------| | ⚡ | 5312016608254762256 | Ops, speed, alerts | | 💡 | 5312536423851630001 | Ideas, suggestions | | 📰 | 5434144690511290129 | News, announcements | | 🔥 | 5312241539987020022 | Hot topics, urgent | | ❤️ | 5312138559556164615 | Community, love | | 📝 | 5373251851074415873 | Notes, documentation | | 🤖 | 5309832892262654231 | Bots, automation | | 💬 | 5417915203100613993 | Chat, discussion | | 📊 | 5350305691942788490 | Stats, analytics | | 🎯 | 5418085807791545980 | Goals, targets |
See references/emoji-ids.md for complete list.
To fetch all valid icon sticker IDs:
curl -X POST "https://api.telegram.org/bot<TOKEN>/getForumTopicIconStickers"
Archive workflow: rename with [ARCHIVED] prefix, set folder icon, close topic, then handle the OpenClaw session.
Use the archive script:
scripts/archive_topic.sh <TOKEN> <GROUP_ID> <TOPIC_ID> "Current Topic Name"
This will:
[ARCHIVED] Current Topic Name5357315181649076022)# Export session history to the sessions archive folder
openclaw sessions history 'agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>' > ~/.openclaw/agents/main/sessions/archive/<topic-name>-<date>.md
# Delete the session (manual - remove from sessions.json and delete transcript)
# Session key: agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>
Remove the topic from OpenClaw config if it had custom settings:
gateway action=config.patch raw='{"channels":{"telegram":{"groups":{"<GROUP_ID>":{"topics":{"<TOPIC_ID>":null}}}}}}'
No getForumTopicInfo method exists. Cannot query topic name by thread ID.
Workarounds:
forum_topic_created events安装 Telegram Ops 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/telegram-ops/ 目录(个人级,所有项目可用),或 .claude/skills/telegram-ops/(项目级)。重启 AI 客户端后,用 /telegram-ops 主动调用,或让 AI 根据上下文自动发现并使用。
Telegram Ops 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Telegram Ops 可免费安装使用。请查阅仓库了解许可证信息。
Telegram Bot API operations for forum management. Use for creating/editing/archiving forum topics, setting topic icons, managing Telegram groups via Bot API. Use when archiving channels/topics. Requires bot token from OpenClaw config.
Telegram Ops 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。