Telegram Chat to Image for Openclaw

A specialized utility for converting raw Telegram Desktop JSON exports into polished, long screenshot-style images using Openclaw Skills.

reetyo
v1.2.1
Mar 7, 2026
0
935
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install telegram-chat-to-image

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install telegram-chat-to-image using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Telegram Chat to Image?

Telegram Chat to Image is a developer-centric tool designed to bridge the gap between raw data exports and visual communication. It parses the JSON structure provided by Telegram Desktop and renders a high-fidelity image that mimics the iOS chat interface, complete with color-coded bubbles and avatars. This skill is a vital part of the Openclaw Skills library for users who need to create professional-looking chat archives or share long conversations without the hassle of taking multiple manual screenshots.

The tool handles complex formatting tasks such as character-aware text wrapping, timestamp alignment, and sender differentiation. By leveraging Openclaw Skills, developers can automate the generation of conversation visuals for documentation, legal archiving, or social sharing while maintaining a clean and consistent aesthetic.

Telegram Chat to Image Use Cases

  • Documenting project discussions for stakeholders in a readable visual format.
  • Archiving long Telegram conversations as a single, searchable image file.
  • Generating high-quality chat mockups from real data exports using Openclaw Skills.
  • Bypassing Telegram's image compression by generating and packaging long screenshots into ZIP files.

How Telegram Chat to Image Works

  1. The user exports a chat history from Telegram Desktop specifically in JSON format.
  2. The Openclaw Skills script takes the JSON file as input and initializes a rendering canvas using the Pillow library.
  3. The script iterates through the message array, identifying the sender to determine bubble color (blue for 'me', gray for others).
  4. Text is processed through a word-wrap engine that checks character widths to ensure proper display, especially for multi-language support.
  5. Avatars are generated dynamically using initials, and timestamps are formatted into a standard HH:MM layout.
  6. The final output is stitched into a single vertical PNG image with a default width of 800px.

Telegram Chat to Image Setup

First, ensure you have the required image processing library installed:

pip install Pillow

To use this within the Openclaw Skills environment, run the script via CLI:

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

For Chinese text support, specify a compatible font path:

python3 scripts/chat_to_image.py --input result.json --font /path/to/font.ttc

Telegram Chat to Image Data Schema & Taxonomy

The skill expects a standard Telegram Desktop JSON export. Key fields processed include:

Key Description
from The display name of the message sender.
from_id Used to distinguish between the user and other participants.
text The string or array content of the message.
date ISO timestamp used for rendering the chat time.

Output metadata includes a fixed image width of 800px and dynamic height based on message count.

Telegram Chat to Image Advanced Features

  • Multi-language support with custom font path injection for perfect Chinese character rendering.
  • Message limitation using the --limit flag to process specific segments of large chat histories.
  • iOS-style UI logic that automatically calculates bubble padding and avatar placement.
  • High-resolution rendering compatible with Openclaw Skills automated workflows.
  • ZIP packaging recommendations to maintain image clarity against platform compression.

SKILL.md


Loading

Related Openclaw Skills

Featured*