跳到正文
TakoAPI
返回技能列表

tg-media-resolve

由 kurinzo 提供

Coding Agents & IDEs
743下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Resolve Telegram <media:image>, <media:document>, <media:video> and other media placeholders into actual files.

描述

该技能的功能

Resolves Telegram media placeholders like `<media:image>` or `<media:video>` into actual downloaded files. When a Telegram message contains a media reference the agent cannot directly see, this skill uses the Bot API to forward, download, and clean up the file. Returns a local file path ready for vision analysis or further processing.

Directly bridges the gap between opaque media placeholders in Telegram message context and usable local files, without requiring manual download steps.

何时使用

  • Analyzing an image shared in a Telegram group chat
  • Reading a document sent as a reply in a bot conversation
  • Inspecting a video or GIF from a forwarded Telegram message
  • Running OCR on a photo referenced in group history
  • Processing voice messages or stickers from Telegram chats

示例工作流

输入

User asks: 'What does the image in that replied message show?'

智能体
  1. 1

    Extract chat_id and message_id from the message context format [id:CHAT_ID] [id:MSG_ID]

  2. 2

    Read bot token from ~/.openclaw/openclaw.json

  3. 3

    Run fetch_media.py with --bot-token, --chat-id, --message-id, and --forward-to a private DM chat

  4. 4

    Receive local file path of the downloaded image

  5. 5

    Pass file path to the image tool for vision analysis

输出

Description of the image content from the downloaded file

前置要求

  • Telegram Bot API token (configured in OpenClaw as channels.telegram.botToken)
  • Telegram bot must be a member of the target chat

安装

clawhub install kurinzo/tg-media-resolve

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接