From telegram-cli
Downloads photos, videos, documents from Telegram messages via CLI. Browse chats with 'read <chat> -n N' to find media message IDs, then 'download <chat> <id>' to save files.
npx claudepluginhub terrylica/cc-skillsThis skill is limited to using the following tools:
Download photos, videos, documents, and other media from Telegram messages.
Downloads photos, videos, documents, and other media from Telegram messages using tg-cli.py. Browse chats with 'read' to find message IDs, then use 'download' to save files to current or specified directory.
Sends files, photos, videos, voice notes, and documents to Telegram chats via personal account using Python Telethon script from Bash. Useful for automating media sharing in scripts.
Fetches latest messages from Telegram channels and sends HTML-formatted messages using Python scripts. Requires bot token and channel ID. Useful for Telegram bot interactions.
Share bugs, ideas, or general feedback.
Download photos, videos, documents, and other media from Telegram messages.
/usr/bin/env bash << 'EOF'
SCRIPT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/telegram-cli}/scripts/send.py"
# Step 1: Find message ID with media
uv run --python 3.13 "$SCRIPT" read <chat> -n 10
# Step 2: Download by message ID
uv run --python 3.13 "$SCRIPT" download <chat> <message_id>
# Download to specific directory
uv run --python 3.13 "$SCRIPT" download 2124832490 471931 -o /tmp/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[media/service] in textdownload <chat> <id> to save the file| Error | Cause | Fix |
|---|---|---|
message not found | Invalid message ID | Check with read first |
has no media | Text-only message | Choose a message with media |