Downloads photos, videos, and documents from Telegram messages using a CLI script. Browse chats, find message IDs, and save media to local directories.
Ships in tlg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Download photos, videos, documents, and other media from Telegram messages.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
~/.local/share/gramjs/<profile>.session
/tlg:setup first/usr/bin/env bash << 'EOF'
ROOT="$(cc-plugin-root tlg)"
SCRIPT="$ROOT/scripts/tg-cli.ts"
# Step 1: Find message ID with media
bun "$SCRIPT" read <chat> -n 10
# Step 2: Download by message ID
bun "$SCRIPT" download <chat> <message_id>
# Download to specific directory
bun "$SCRIPT" download 2124832490 471931 -o ./downloads
EOF
| Parameter | Type | Description |
|---|---|---|
| chat | string/int | Chat containing the message |
| message_id | int | ID of message with media |
-o/--output | path | Output directory (default: current) |
read <chat> -n N to browse messages and find IDs[photo], [document], …) beside its caption; [web page] is only a link preview and has nothing to downloadalbum:G marker (usually adjacent ids)download <chat> <id> with the id of the media message itself| Error | Cause | Fix |
|---|---|---|
message not found | The id is not in this chat (an id from a global search belongs to the chat shown in its {…}) | Check with read first |
has no media | Text-only message | Choose a message with media |
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/cleanup-deleteduser wants to clean up Telegram by purging deleted or ghost accounts from their dialog list and contacts, or removing spam ghosts that clutter./create-groupUse when user wants to create a new Telegram group, supergroup, or channel, optionally inviting members on creation./delete-messagesUse when user wants to delete, remove, or unsend Telegram messages from a chat, either for everyone or just for themselves.Other plugins' skills for the same job
/draft-messageUse when an AI agent has drafted a long or sensitive Telegram message and the user wants to review it before sending: posts it to Saved Messages for editing and copy-paste./tlg:download-mediafrom tlg
npx claudepluginhub terrylica/cc-skills --plugin tlg