Telegram Chat To Image
by @reetyo
Convert Telegram chat exports into a long screenshot-style image. Supports Telegram Desktop JSON exports with bubble-style message rendering, avatars, timest...
clawhub install telegram-chat-to-image📖 About This Skill
name: telegram-chat-to-image description: "Convert Telegram chat exports into a long screenshot-style image. Supports Telegram Desktop JSON exports with bubble-style message rendering, avatars, timestamps, and proper text wrapping. Use when user wants to generate a visual image of Telegram conversations, create chat screenshots, or share conversation history as a single long image."
Telegram Chat to Image
Converts Telegram chat exports into a long screenshot-style image with iOS-style bubble interface.
Changelog
v1.2.0 (2026-03-07)
v1.1.0 (2026-03-01)
v1.0.0
Prerequisites
\\\bash
pip install Pillow
\\\
Usage
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.pngCustom font (for Chinese support)
python3 scripts/chat_to_image.py --input result.json --font /System/Library/Fonts/PingFang.ttc \\\Getting Telegram Export
1. Open Telegram Desktop 2. Go to the chat you want to export 3. Click menu and Export chat history 4. Select JSON format 5. 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:
Limitations
Best Practices
Handling Long Conversations
For long conversations that result in tall images (>2000px), consider:
1. 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.2. Message Limits: Use --limit to generate partial exports if the full conversation is too long
Customization
Edit scripts/chat_to_image.py to adjust:
💡 Examples
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.pngCustom font (for Chinese support)
python3 scripts/chat_to_image.py --input result.json --font /System/Library/Fonts/PingFang.ttc \\\Getting Telegram Export
1. Open Telegram Desktop 2. Go to the chat you want to export 3. Click menu and Export chat history 4. Select JSON format 5. 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.
⚙️ Configuration
\\\bash
pip install Pillow
\\\
📋 Tips & Best Practices
Handling Long Conversations
For long conversations that result in tall images (>2000px), consider:
1. 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.2. Message Limits: Use --limit to generate partial exports if the full conversation is too long