# Send Telegram Chat To Image 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-chat-to-image",
    "name": "Telegram Chat To Image",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/reetyo/telegram-chat-to-image",
    "canonicalUrl": "https://clawhub.ai/reetyo/telegram-chat-to-image",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/telegram-chat-to-image",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-chat-to-image",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/chat_to_image.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "telegram-chat-to-image",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T13:20:55.063Z",
      "expiresAt": "2026-05-08T13:20:55.063Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-chat-to-image",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-chat-to-image",
        "contentDisposition": "attachment; filename=\"telegram-chat-to-image-1.2.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "telegram-chat-to-image"
      },
      "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-chat-to-image"
    },
    "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-chat-to-image",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-chat-to-image",
    "agentUrl": "https://openagent3.xyz/skills/telegram-chat-to-image/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-chat-to-image/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-chat-to-image/agent.md"
  }
}
```
## Documentation

### Telegram Chat to Image

Converts Telegram chat exports into a long screenshot-style image with iOS-style bubble interface.

### v1.2.0 (2026-03-07)

建议: 长图发送优化 — 对于较长对话，建议打包为 ZIP 文件发送，避免 Telegram 图片压缩导致模糊

### v1.1.0 (2026-03-01)

修复: 中文长文本换行问题 — 现在逐字符检查宽度，正确换行
修复: 发件人显示问题 — 正确区分"我"(蓝色气泡)和其他人(灰色气泡+头像)
新增: 显示每条消息的发件人名称

### v1.0.0

初始版本

### Prerequisites

\`\`\`bash
pip install Pillow
\`\`\`

### CLI

\`\`\`bash

### Basic usage

python3 scripts/chat_to_image.py --input result.json --output chat.png

### Limit messages

python3 scripts/chat_to_image.py --input result.json --limit 50 --output chat.png

### Custom font (for Chinese support)

python3 scripts/chat_to_image.py --input result.json --font /System/Library/Fonts/PingFang.ttc
\`\`\`

### Getting Telegram Export

Open Telegram Desktop
Go to the chat you want to export
Click menu and Export chat history
Select JSON format
Choose messages and export

### Input Format

Expects Telegram Desktop JSON export format with messages array containing id, type, date, from, from_id, and text fields.

### Output

Generates a PNG image with:

800px width
iOS-style bubble chat interface
Gray bubbles for others, blue for user messages
Circular avatars with initials
Timestamps (HH:MM format)
Proper text wrapping for long messages

### Limitations

Images, stickers, and media are not rendered
Reply threads are not visually indicated
Only plain text messages are fully supported
Large exports may create very tall images

### Handling Long Conversations

For long conversations that result in tall images (>2000px), consider:

ZIP Packaging: Pack the PNG into a ZIP file before sending to avoid Telegram's image compression
zip chat.zip chat.png

Then send the ZIP file as a document instead of an image.


Message Limits: Use --limit to generate partial exports if the full conversation is too long

### Customization

Edit scripts/chat_to_image.py to adjust:

WIDTH: Image width (default 800)
MY_BUBBLE_COLOR: Your message color
OTHER_BUBBLE_COLOR: Others message color
FONT_SIZE, BUBBLE_PADDING: Layout spacing
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: reetyo
- Version: 1.2.1
## 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-01T13:20:55.063Z
- Expires at: 2026-05-08T13:20:55.063Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/telegram-chat-to-image)
- [Send to Agent page](https://openagent3.xyz/skills/telegram-chat-to-image/agent)
- [JSON manifest](https://openagent3.xyz/skills/telegram-chat-to-image/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/telegram-chat-to-image/agent.md)
- [Download page](https://openagent3.xyz/downloads/telegram-chat-to-image)