{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/telegram-ops",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-ops",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/emoji-ids.md",
      "scripts/archive_topic.sh",
      "scripts/create_topic.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/telegram-ops",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Telegram Ops",
        "body": "Manage Telegram forum topics and Bot API operations."
      },
      {
        "title": "Prerequisites",
        "body": "Bot must be admin in the group with can_manage_topics permission\nGet the bot token from OpenClaw config:\ngateway action=config.get | jq -r '.result.parsed.channels.telegram.botToken'"
      },
      {
        "title": "Creating a Topic",
        "body": "When creating a topic, follow all of these steps:\n\nCreate the topic via Telegram Bot API (returns message_thread_id)\nSet the icon -- pick one that matches the topic's purpose (see Icon Reference)\nChoose relevant skills -- run openclaw skills list, pick only ready skills that fit the topic's purpose\nWrite a system prompt -- give the agent context for what this topic is about\nPatch the OpenClaw config -- register the topic with its skills and system prompt"
      },
      {
        "title": "Step 1: Create via Bot API",
        "body": "curl -X POST \"https://api.telegram.org/bot<TOKEN>/createForumTopic\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"chat_id\": <GROUP_ID>,\n    \"name\": \"topic name\"\n  }'\n\nReturns message_thread_id (the topic ID) -- you need this for all subsequent steps."
      },
      {
        "title": "Step 2: Set the Icon",
        "body": "curl -X POST \"https://api.telegram.org/bot<TOKEN>/editForumTopic\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"chat_id\": <GROUP_ID>,\n    \"message_thread_id\": <TOPIC_ID>,\n    \"name\": \"topic name\",\n    \"icon_custom_emoji_id\": \"<EMOJI_ID>\"\n  }'"
      },
      {
        "title": "Step 3-5: Configure OpenClaw",
        "body": "Patch the config to register the topic with a system prompt:\n\ngateway action=config.patch raw='{\"channels\":{\"telegram\":{\"groups\":{\"<GROUP_ID>\":{\"topics\":{\"<TOPIC_ID>\":{\"systemPrompt\":\"Topic-specific instructions\"}}}}}}}'\n\nTopic configs inherit from the parent group -- only specify overrides.\n\nDo 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."
      },
      {
        "title": "Session Keys",
        "body": "Each topic gets its own isolated OpenClaw session:\n\nagent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>\n\nEach session has independent conversation history, context window, and compaction."
      },
      {
        "title": "Topic Icons",
        "body": "EmojiIDUse Case⚡5312016608254762256Ops, speed, alerts💡5312536423851630001Ideas, suggestions📰5434144690511290129News, announcements🔥5312241539987020022Hot topics, urgent❤️5312138559556164615Community, love📝5373251851074415873Notes, documentation🤖5309832892262654231Bots, automation💬5417915203100613993Chat, discussion📊5350305691942788490Stats, analytics🎯5418085807791545980Goals, targets\n\nSee references/emoji-ids.md for complete list.\n\nTo fetch all valid icon sticker IDs:\n\ncurl -X POST \"https://api.telegram.org/bot<TOKEN>/getForumTopicIconStickers\""
      },
      {
        "title": "Archiving a Topic",
        "body": "Archive workflow: rename with [ARCHIVED] prefix, set folder icon, close topic, then handle the OpenClaw session."
      },
      {
        "title": "Step 1: Archive in Telegram",
        "body": "Use the archive script:\n\nscripts/archive_topic.sh <TOKEN> <GROUP_ID> <TOPIC_ID> \"Current Topic Name\"\n\nThis will:\n\nRename to [ARCHIVED] Current Topic Name\nSet the 📁 folder icon (5357315181649076022)\nClose the topic (locks it from new messages)"
      },
      {
        "title": "Step 2: Export and Delete OpenClaw Session",
        "body": "# Export session history to the sessions archive folder\nopenclaw sessions history 'agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>' > ~/.openclaw/agents/main/sessions/archive/<topic-name>-<date>.md\n\n# Delete the session (manual - remove from sessions.json and delete transcript)\n# Session key: agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>"
      },
      {
        "title": "Step 3: Clean Up Config (Optional)",
        "body": "Remove the topic from OpenClaw config if it had custom settings:\n\ngateway action=config.patch raw='{\"channels\":{\"telegram\":{\"groups\":{\"<GROUP_ID>\":{\"topics\":{\"<TOPIC_ID>\":null}}}}}}'"
      },
      {
        "title": "Limitations",
        "body": "No getForumTopicInfo method exists. Cannot query topic name by thread ID.\n\nWorkarounds:\n\nCache names from forum_topic_created events\nStore mapping in local config\nMonitor topic creation service messages"
      }
    ],
    "body": "Telegram Ops\n\nManage Telegram forum topics and Bot API operations.\n\nPrerequisites\nBot must be admin in the group with can_manage_topics permission\nGet the bot token from OpenClaw config:\ngateway action=config.get | jq -r '.result.parsed.channels.telegram.botToken'\n\nCreating a Topic\n\nWhen creating a topic, follow all of these steps:\n\nCreate the topic via Telegram Bot API (returns message_thread_id)\nSet the icon -- pick one that matches the topic's purpose (see Icon Reference)\nChoose relevant skills -- run openclaw skills list, pick only ready skills that fit the topic's purpose\nWrite a system prompt -- give the agent context for what this topic is about\nPatch the OpenClaw config -- register the topic with its skills and system prompt\nStep 1: Create via Bot API\ncurl -X POST \"https://api.telegram.org/bot<TOKEN>/createForumTopic\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"chat_id\": <GROUP_ID>,\n    \"name\": \"topic name\"\n  }'\n\n\nReturns message_thread_id (the topic ID) -- you need this for all subsequent steps.\n\nStep 2: Set the Icon\ncurl -X POST \"https://api.telegram.org/bot<TOKEN>/editForumTopic\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"chat_id\": <GROUP_ID>,\n    \"message_thread_id\": <TOPIC_ID>,\n    \"name\": \"topic name\",\n    \"icon_custom_emoji_id\": \"<EMOJI_ID>\"\n  }'\n\nStep 3-5: Configure OpenClaw\n\nPatch the config to register the topic with a system prompt:\n\ngateway action=config.patch raw='{\"channels\":{\"telegram\":{\"groups\":{\"<GROUP_ID>\":{\"topics\":{\"<TOPIC_ID>\":{\"systemPrompt\":\"Topic-specific instructions\"}}}}}}}'\n\n\nTopic configs inherit from the parent group -- only specify overrides.\n\nDo 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.\n\nSession Keys\n\nEach topic gets its own isolated OpenClaw session:\n\nagent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>\n\n\nEach session has independent conversation history, context window, and compaction.\n\nTopic Icons\nEmoji\tID\tUse Case\n⚡\t5312016608254762256\tOps, speed, alerts\n💡\t5312536423851630001\tIdeas, suggestions\n📰\t5434144690511290129\tNews, announcements\n🔥\t5312241539987020022\tHot topics, urgent\n❤️\t5312138559556164615\tCommunity, love\n📝\t5373251851074415873\tNotes, documentation\n🤖\t5309832892262654231\tBots, automation\n💬\t5417915203100613993\tChat, discussion\n📊\t5350305691942788490\tStats, analytics\n🎯\t5418085807791545980\tGoals, targets\n\nSee references/emoji-ids.md for complete list.\n\nTo fetch all valid icon sticker IDs:\n\ncurl -X POST \"https://api.telegram.org/bot<TOKEN>/getForumTopicIconStickers\"\n\nArchiving a Topic\n\nArchive workflow: rename with [ARCHIVED] prefix, set folder icon, close topic, then handle the OpenClaw session.\n\nStep 1: Archive in Telegram\n\nUse the archive script:\n\nscripts/archive_topic.sh <TOKEN> <GROUP_ID> <TOPIC_ID> \"Current Topic Name\"\n\n\nThis will:\n\nRename to [ARCHIVED] Current Topic Name\nSet the 📁 folder icon (5357315181649076022)\nClose the topic (locks it from new messages)\nStep 2: Export and Delete OpenClaw Session\n# Export session history to the sessions archive folder\nopenclaw sessions history 'agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>' > ~/.openclaw/agents/main/sessions/archive/<topic-name>-<date>.md\n\n# Delete the session (manual - remove from sessions.json and delete transcript)\n# Session key: agent:main:telegram:group:<GROUP_ID>:topic:<TOPIC_ID>\n\nStep 3: Clean Up Config (Optional)\n\nRemove the topic from OpenClaw config if it had custom settings:\n\ngateway action=config.patch raw='{\"channels\":{\"telegram\":{\"groups\":{\"<GROUP_ID>\":{\"topics\":{\"<TOPIC_ID>\":null}}}}}}'\n\nLimitations\n\nNo getForumTopicInfo method exists. Cannot query topic name by thread ID.\n\nWorkarounds:\n\nCache names from forum_topic_created events\nStore mapping in local config\nMonitor topic creation service messages"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/BrennerSpear/telegram-ops",
    "publisherUrl": "https://clawhub.ai/BrennerSpear/telegram-ops",
    "owner": "BrennerSpear",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}