telegram-message-export

Exports Telegram message ranges with media and reply context into ZIP archives.

6|Updated May 18, 2026
One-click install
npx skills add https://github.com/mokhtarabadi/cognitive-lead-hq --skill telegram-message-export-mokhtarabadi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: telegram-message-export
Source: https://github.com/mokhtarabadi/cognitive-lead-hq/tree/main/skill-templates/telegram-message-export
Command: npx skills add https://github.com/mokhtarabadi/cognitive-lead-hq --skill telegram-message-export-mokhtarabadi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually saving Telegram conversations loses reply context and requires downloading media one by one. This Skill automates the extraction of a defined message range, preserving thread relationships and bundling everything into a single archive. ## Core Features & Use Cases - Range-Based Export: Fetches messages between two message IDs, resolving ranges from text snippets or t.me links. - Reply Hierarchy Preservation: Every message gets a numbered text sidecar recording its reply_to_message_id so conversation trees stay intact. - Media Download & Archiving: Downloads images and voice notes alongside text, then packs everything into a timestamped ZIP file. - Use Case: A community manager needs to archive a support conversation spanning messages 1200 to 1450, including screenshots and voice notes, for compliance records. The Skill exports the full range with reply context into one ZIP. ## Quick Start Export Telegram messages 1200 through 1450 from this chat, including all media and reply context, into a ZIP archive.

Frequently Asked Questions about telegram-message-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a range of Telegram messages with media?▼

Specify a from_id and to_id range, then the Skill fetches history via telegram_get_history, downloads media with telegram_download_media, and writes numbered text sidecars. Everything is packed into a timestamped ZIP archive.

How to find a Telegram message ID from a link or text snippet?▼

For t.me/c/CHAT_ID/MSG_ID links, extract the message ID directly from the URL. For text snippets, use telegram_search_messages to locate the matching message and retrieve its ID.

Does Telegram export preserve reply threads and conversation context?▼

Yes, each exported message gets a text sidecar file that records the reply_to_message_id field. This preserves the conversation tree so replies can be reconstructed after export.

What happens when exporting more than 200 Telegram messages?▼

The Skill pauses and asks for confirmation before proceeding when a range exceeds 200 messages. This safeguard prevents hitting Telegram rate limits during large exports.

What output format does the Telegram message export produce?▼

The export produces a folder of numbered files: one .txt sidecar per message with metadata and content, plus downloaded media files with matching numbers. The folder is compressed into a single ZIP archive.