# Send Telegram Ops to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "telegram-ops",
    "name": "Telegram Ops",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/BrennerSpear/telegram-ops",
    "canonicalUrl": "https://clawhub.ai/BrennerSpear/telegram-ops",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/telegram-ops",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-ops",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/emoji-ids.md",
      "scripts/archive_topic.sh",
      "scripts/create_topic.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "telegram-ops",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-09T20:56:57.758Z",
      "expiresAt": "2026-05-16T20:56:57.758Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-ops",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-ops",
        "contentDisposition": "attachment; filename=\"telegram-ops-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "telegram-ops"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/telegram-ops"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/telegram-ops",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-ops",
    "agentUrl": "https://openagent3.xyz/skills/telegram-ops/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-ops/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-ops/agent.md"
  }
}
```
## Documentation

### Telegram Ops

Manage Telegram forum topics and Bot API operations.

### Prerequisites

Bot must be admin in the group with can_manage_topics permission
Get the bot token from OpenClaw config:
gateway action=config.get | jq -r '.result.parsed.channels.telegram.botToken'

### Creating a Topic

When creating a topic, follow all of these steps:

Create the topic via Telegram Bot API (returns message_thread_id)
Set the icon -- pick one that matches the topic's purpose (see Icon Reference)
Choose relevant skills -- run openclaw skills list, pick only ready skills that fit the topic's purpose
Write a system prompt -- give the agent context for what this topic is about
Patch the OpenClaw config -- register the topic with its skills and system prompt

### Step 1: Create via Bot API

curl -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.

### Step 2: Set the Icon

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>"
  }'

### Step 3-5: Configure OpenClaw

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.

### Session Keys

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.

### Topic Icons

EmojiIDUse Case⚡5312016608254762256Ops, speed, alerts💡5312536423851630001Ideas, suggestions📰5434144690511290129News, announcements🔥5312241539987020022Hot topics, urgent❤️5312138559556164615Community, love📝5373251851074415873Notes, documentation🤖5309832892262654231Bots, automation💬5417915203100613993Chat, discussion📊5350305691942788490Stats, analytics🎯5418085807791545980Goals, 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"

### Archiving a Topic

Archive workflow: rename with [ARCHIVED] prefix, set folder icon, close topic, then handle the OpenClaw session.

### Step 1: Archive in Telegram

Use the archive script:

scripts/archive_topic.sh <TOKEN> <GROUP_ID> <TOPIC_ID> "Current Topic Name"

This will:

Rename to [ARCHIVED] Current Topic Name
Set the 📁 folder icon (5357315181649076022)
Close the topic (locks it from new messages)

### Step 2: Export and Delete OpenClaw Session

# 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>

### Step 3: Clean Up Config (Optional)

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}}}}}}'

### Limitations

No getForumTopicInfo method exists. Cannot query topic name by thread ID.

Workarounds:

Cache names from forum_topic_created events
Store mapping in local config
Monitor topic creation service messages
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: BrennerSpear
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-09T20:56:57.758Z
- Expires at: 2026-05-16T20:56:57.758Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/telegram-ops)
- [Send to Agent page](https://openagent3.xyz/skills/telegram-ops/agent)
- [JSON manifest](https://openagent3.xyz/skills/telegram-ops/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/telegram-ops/agent.md)
- [Download page](https://openagent3.xyz/downloads/telegram-ops)