telegram-opsTelegram 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.
Install via ClawdBot CLI:
clawdbot install BrennerSpear/telegram-opsManage Telegram forum topics and Bot API operations.
can_manage_topics permission
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 eventsGenerated Mar 1, 2026
A community manager uses the skill to organize a Telegram group into structured topics for discussions, announcements, and support, setting icons for visual cues and archiving old topics to maintain clarity. This improves engagement by keeping conversations focused and accessible.
A support team creates dedicated topics for each customer issue, using icons to indicate urgency (e.g., โก for high-priority) and archiving resolved tickets with a folder icon. This streamlines tracking and ensures isolated session histories for each case.
A project manager sets up topics for different project phases like planning, development, and reviews, assigning skills and system prompts to guide AI assistance. Archiving completed phases helps teams focus on current tasks without clutter.
A media company uses the skill to create topics for news updates, using the ๐ฐ icon, and archives old announcements to keep the group tidy. This ensures subscribers receive organized, timely information without scrolling through unrelated chats.
An event organizer creates topics for different aspects of an event like logistics, schedules, and feedback, setting icons like ๐ฏ for goals. After the event, topics are archived to preserve discussions for future reference.
Offer a subscription-based service that integrates this skill into community management tools, providing automated topic creation, icon management, and archiving features. Revenue comes from monthly fees based on group size and usage tiers.
Provide consulting to businesses needing help setting up and optimizing Telegram forums, including custom configurations and training. Revenue is generated through project-based fees or hourly rates for ongoing support.
Develop a Telegram bot that leverages this skill for free basic forum management, with premium features like advanced analytics or bulk operations. Revenue comes from upgrades, in-app purchases, or enterprise licensing.
๐ฌ Integration Tip
Ensure the bot token is securely stored in OpenClaw config and test API calls in a sandbox group before deploying to production to avoid disruptions.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).