
Telegram Reader
- 1.3k installs
- 3.1k repo stars
- Updated July 21, 2026
- himself65/finance-skills
telegram-reader provides documented workflows for >
About
The telegram-reader skill > # Telegram News Skill (Read-Only) Reads Telegram channels and groups for financial news and market research using [tdl](https://github.com/iyear/tdl), a Telegram CLI tool. **This skill is read-only.** It is designed for financial research: reading channel messages, monitoring financial news channels, and exporting message history. It does NOT support sending messages, joining/leaving channels, or any write operations. If `TDL_NOT_INSTALLED`, install tdl based on the user's platform: | Platform | Install Command | |----------|----------------| | macOS / Linux | `curl -sSL https://docs.iyear.me/tdl/install.sh \| sudo bash` | | macOS (Homebrew) | `brew install telegram-downloader` | | Linux (Termux) | `pkg install tdl` | | Linux (AUR) | `yay -S tdl` | | Linux (Nix) | `nix-env -iA nixos.tdl` | | Go (any platform) | `go install github.com/iyear/tdl@latest` | Ask the user which installation method they prefer. Default to Homebrew on macOS, curl script on Linux. If `AUTH_NEEDED`, guide the user through login. **Login requires interactive input** - the user must enter their phone number and verification code manually.
- Login is a **one-time** operation. The session persists on disk after successful login.
- If login fails, ask the user to check their internet connection and try again.
- **Never ask for or handle Telegram passwords/2FA codes programmatically** - always let the user enter them interactive
- **Check auth first** - run `tdl chat ls --limit 1` before other commands to verify the session is valid
- **Always use `--all --with-content`** when exporting messages for reading - without these flags, tdl only exports medi
Telegram Reader by the numbers
- 1,264 all-time installs (skills.sh)
- +36 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #250 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
- Security screen: CRITICAL risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
telegram-reader capabilities & compatibility
- Capabilities
- login is a **one time** operation. the session p · if login fails, ask the user to check their inte · **never ask for or handle telegram passwords/2fa · **check auth first** run `tdl chat ls limit · **always use ` all with content`** when expor
- Use cases
- documentation · planning
What telegram-reader says it does
# Telegram News Skill (Read-Only) Reads Telegram channels and groups for financial news and market research using [tdl](https://github.com/iyear/tdl), a Telegram CLI tool.
**This skill is read-only.** It is designed for financial research: reading channel messages, monitoring financial news channels, and exporting message history.
npx skills add https://github.com/himself65/finance-skills --skill telegram-readerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.3k |
|---|---|
| repo stars | ★ 3.1k |
| Security audit | 1 / 3 scanners passed |
| Last updated | July 21, 2026 |
| Repository | himself65/finance-skills ↗ |
How do I use telegram-reader for the task described in its SKILL.md triggers?
>
Who is it for?
Teams invoking telegram-reader when the user request matches documented triggers and prerequisites.
Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.
When should I use this skill?
>
What you get
Step-by-step guidance grounded in telegram-reader documentation and reference files.
- Exported message dumps
- Channel listing reports
- Time-filtered news extracts
By the numbers
- Provides 4 read capabilities: list chats, export messages, time-range queries, channel search
Files
Telegram News Skill (Read-Only)
Reads Telegram channels and groups for financial news and market research using tdl, a Telegram CLI tool.
This skill is read-only. It is designed for financial research: reading channel messages, monitoring financial news channels, and exporting message history. It does NOT support sending messages, joining/leaving channels, or any write operations.
---
Step 1: Ensure tdl Is Installed
Current environment status:
!`(command -v tdl && tdl version 2>&1 | head -3 || echo "TDL_NOT_INSTALLED") 2>/dev/null`If the status above shows a version number, tdl is installed — skip to Step 2.
If TDL_NOT_INSTALLED, install tdl based on the user's platform:
| Platform | Install Command |
|---|---|
| macOS / Linux | `curl -sSL https://docs.iyear.me/tdl/install.sh \ |
| macOS (Homebrew) | brew install telegram-downloader |
| Linux (Termux) | pkg install tdl |
| Linux (AUR) | yay -S tdl |
| Linux (Nix) | nix-env -iA nixos.tdl |
| Go (any platform) | go install github.com/iyear/tdl@latest |
Ask the user which installation method they prefer. Default to Homebrew on macOS, curl script on Linux.
---
Step 2: Ensure tdl Is Authenticated
Current auth status:
!`(tdl chat ls --limit 1 2>&1 >/dev/null && echo "AUTH_OK" || echo "AUTH_NEEDED") 2>/dev/null`If AUTH_OK, skip to Step 3.
If AUTH_NEEDED, guide the user through login. Login requires interactive input — the user must enter their phone number and verification code manually.
Login methods
Method A: QR Code (recommended — fastest)
tdl login -T qrA QR code will be displayed in the terminal. The user scans it with their Telegram mobile app (Settings > Devices > Link Desktop Device).
Method B: Phone + Code
tdl login -T codeThe user enters their phone number, then the verification code sent to their Telegram app.
Method C: Import from Telegram Desktop
If the user has Telegram Desktop installed and logged in:
tdl loginThis imports the session from the existing desktop client. The desktop client must be from the official website, NOT from the App Store or Microsoft Store.
Namespaces
By default, tdl uses a default namespace. To manage multiple accounts:
tdl login -n work -T qr # Login to "work" namespace
tdl chat ls -n work # Use "work" namespace for commandsImportant login notes
- Login is a one-time operation. The session persists on disk after successful login.
- If login fails, ask the user to check their internet connection and try again.
- Never ask for or handle Telegram passwords/2FA codes programmatically — always let the user enter them interactively.
---
Step 3: Identify What the User Needs
Match the user's request to one of the read operations below.
| User Request | Command | Key Flags |
|---|---|---|
| List all chats/channels | tdl chat ls | -o json, -f "FILTER" |
| List only channels | tdl chat ls -f "Type contains 'channel'" | -o json |
| Export recent messages | tdl chat export -c CHAT -T last -i N | --all, --with-content |
| Export messages by time range | tdl chat export -c CHAT -T time -i START,END | --all, --with-content |
| Export messages by ID range | tdl chat export -c CHAT -T id -i FROM,TO | --all, --with-content |
| Export from a topic/thread | tdl chat export -c CHAT --topic TOPIC_ID | --all, --with-content |
| Search for a channel by name | tdl chat ls -f "VisibleName contains 'NAME'" | -o json |
Chat identifiers
The -c flag accepts multiple formats:
| Format | Example |
|---|---|
| Username (with @) | -c @channel_name |
| Username (without @) | -c channel_name |
| Numeric chat ID | -c 123456789 |
| Public link | -c https://t.me/channel_name |
| Phone number | -c "+1 123456789" |
| Saved Messages | -c "" (empty) |
---
Step 4: Execute the Command
Listing chats
# List all chats
tdl chat ls
# JSON output for processing
tdl chat ls -o json
# Filter for channels only
tdl chat ls -f "Type contains 'channel'"
# Search by name
tdl chat ls -f "VisibleName contains 'Bloomberg'"Exporting messages
Always use --all --with-content to get text messages (not just media):
# Last 20 messages from a channel
tdl chat export -c @channel_name -T last -i 20 --all --with-content -o /tmp/tdl-export.json
# Messages from a time range (Unix timestamps)
tdl chat export -c @channel_name -T time -i 1710288000,1710374400 --all --with-content -o /tmp/tdl-export.json
# Messages by ID range
tdl chat export -c @channel_name -T id -i 100,200 --all --with-content -o /tmp/tdl-export.jsonKey rules
1. Check auth first — run tdl chat ls --limit 1 before other commands to verify the session is valid 2. Always use `--all --with-content` when exporting messages for reading — without these flags, tdl only exports media messages 3. Use `-o FILE` to save exports to a file, then read the JSON — this is more reliable than parsing stdout 4. Start with small exports — use -T last -i 20 unless the user asks for more 5. Use filters on `chat ls` to help users find the right channel before exporting 6. NEVER execute write operations — this skill is read-only; do not send messages, join channels, or modify anything 7. Convert timestamps — when the user gives dates, convert to Unix timestamps for the -T time filter
Working with exported JSON
After exporting, read the JSON file and extract the relevant information:
# Export messages
tdl chat export -c @channel_name -T last -i 20 --all --with-content -o /tmp/tdl-export.json
# Read and process the export
cat /tmp/tdl-export.jsonThe export JSON contains message objects with fields like id, date, message (text content), from_id, views, and media metadata.
---
Step 5: Present the Results
After fetching data, present it clearly for financial research:
1. Summarize key messages — highlight the most relevant news or market updates 2. Include timestamps — show when each message was posted 3. Group by topic — if multiple channels, organize by theme (macro, earnings, crypto, etc.) 4. Flag actionable information — note breaking news, price targets, earnings surprises 5. Provide channel context — mention which channel/group each message came from 6. For channel lists, show channel name, member count, and type
---
Step 6: Diagnostics
If something isn't working:
| Error | Cause | Fix |
|---|---|---|
not authorized or session errors | Not logged in or session expired | Run tdl login -T qr to re-authenticate |
FLOOD_WAIT_X | Rate limited by Telegram | Wait X seconds, then retry |
CHANNEL_PRIVATE | No access to channel | User must join the channel in their Telegram app first |
tdl: command not found | tdl not installed | Install using Step 1 |
---
Reference Files
references/commands.md— Complete tdl command reference for reading channels and exporting messages
Read the reference file when you need exact command syntax or detailed flag documentation.
telegram-reader
Read-only Telegram skill for financial news and market research using tdl.
What it does
Reads Telegram channels and groups for financial news — exporting messages, listing channels, and monitoring financial news feeds. Capabilities include:
- List chats — view all your Telegram channels, groups, and contacts with filtering
- Export messages — read recent messages from any channel or group you've joined
- Time-range queries — fetch messages from specific time periods
- Channel search — find channels by name or type
This skill is read-only. It does NOT support sending messages, joining/leaving channels, or any write operations.
Authentication
Requires a one-time interactive login via QR code or phone number. After login, the session persists on disk — no further authentication needed.
Triggers
- "check my Telegram", "read Telegram channel", "Telegram news"
- "what's new in my Telegram channels", "export messages from"
- "financial news on Telegram", "crypto Telegram", "market news Telegram"
- Any mention of Telegram in context of financial news or market research
Platform
Works on Claude Code and other CLI-based agents. Does not work on Claude.ai — the sandbox restricts network access and binaries required by tdl.
Setup
# As a plugin (recommended — installs all skills)
npx plugins add himself65/finance-skills --plugin finance-social-readers
# Or install just this skill
npx skills add himself65/finance-skills --skill telegram-readerSee the main README for more installation options.
Prerequisites
- tdl installed (
brew install telegram-downloaderon macOS) - One-time login:
tdl login -T qr(scan QR code with Telegram mobile app)
Reference files
references/commands.md— Complete tdl command reference for reading channels and exporting messages
tdl Command Reference (Read-Only)
Complete reference for tdl commands used in the telegram skill. Only read operations are documented — this skill does not support write operations.
Global Flags
| Flag | Description |
|---|---|
-n NAMESPACE | Use a specific namespace (default: default) |
--proxy PROXY | Set proxy (e.g., socks5://127.0.0.1:1080, http://127.0.0.1:7890) |
Login
QR Code Login (recommended)
tdl login -T qrDisplays a QR code in the terminal. Scan with Telegram mobile app (Settings > Devices > Link Desktop Device).
Phone + Code Login
tdl login -T codeEnter phone number and verification code interactively.
Desktop Client Import
tdl loginImports session from Telegram Desktop. Client must be from official website, not App Store or Microsoft Store.
Optional flags:
| Flag | Description |
|---|---|
-T TYPE | Login type: qr, code, or desktop import (default) |
-n NAMESPACE | Login to a specific namespace |
-p PASSCODE | Passcode for desktop client (if set) |
-d PATH | Custom path to desktop client data |
List Chats
tdl chat ls [flags]| Flag | Description |
|---|---|
-o json | Output as JSON |
-f "FILTER" | Filter expression |
Filter examples
# All channels
tdl chat ls -f "Type contains 'channel'"
# Search by name
tdl chat ls -f "VisibleName contains 'Bloomberg'"
# Channels with specific name
tdl chat ls -f "Type contains 'channel' && VisibleName contains 'Finance'"
# Groups with topics
tdl chat ls -f "len(Topics)>0"
# List available filter fields
tdl chat ls -f -Export Messages
tdl chat export -c CHAT [flags]Chat identifier formats
| Format | Example |
|---|---|
| Username (with @) | -c @channel_name |
| Username (without @) | -c channel_name |
| Numeric chat ID | -c 123456789 |
| Public link | -c https://t.me/channel_name |
| Phone number | -c "+1 123456789" |
| Saved Messages | -c "" |
Range selection
| Type Flag | Input Flag | Description | Example |
|---|---|---|---|
-T last | -i N | Last N messages | -T last -i 50 |
-T time | -i START,END | Unix timestamp range | -T time -i 1710288000,1710374400 |
-T id | -i FROM,TO | Message ID range | -T id -i 100,500 |
Content flags
| Flag | Description |
|---|---|
--all | Include all messages, not just media messages |
--with-content | Include message text content |
--raw | Output raw MTProto structure |
-o FILE | Output file path (default: tdl-export.json) |
Topic / Reply flags
| Flag | Description |
|---|---|
--topic TOPIC_ID | Export from a specific forum topic |
--reply POST_ID | Export replies to a specific post |
Filtering messages
# List available filter fields
tdl chat export -c CHAT -f -
# Filter by views
tdl chat export -c CHAT -T last -i 50 -f "Views>200"
# Filter by media
tdl chat export -c CHAT -T last -i 50 -f "Media.Name endsWith '.pdf'"Complete export examples
# Last 20 messages with text content from a channel
tdl chat export -c @WallStreetBets -T last -i 20 --all --with-content -o /tmp/wsb.json
# Messages from the last 24 hours (adjust timestamps)
tdl chat export -c @MarketNews -T time -i $(date -d '24 hours ago' +%s),$(date +%s) --all --with-content -o /tmp/market.json
# macOS timestamp variant
tdl chat export -c @MarketNews -T time -i $(date -v-24H +%s),$(date +%s) --all --with-content -o /tmp/market.json
# Export from a topic in a group
tdl chat export -c @CryptoGroup --topic 42 -T last -i 30 --all --with-content -o /tmp/crypto.jsonUseful Patterns
Read latest news from multiple channels
# Export from each channel
for channel in "@Channel1" "@Channel2" "@Channel3"; do
tdl chat export -c "$channel" -T last -i 10 --all --with-content -o "/tmp/tdl-${channel#@}.json"
doneFind a channel then read it
# Step 1: Find the channel
tdl chat ls -f "VisibleName contains 'crypto'" -o json
# Step 2: Export messages (use the ID or username from step 1)
tdl chat export -c @found_channel -T last -i 20 --all --with-content -o /tmp/export.jsonUnix timestamp helpers
# macOS: 24 hours ago
date -v-24H +%s
# macOS: 7 days ago
date -v-7d +%s
# macOS: specific date
date -j -f "%Y-%m-%d" "2026-03-01" +%s
# Linux: 24 hours ago
date -d '24 hours ago' +%s
# Linux: specific date
date -d '2026-03-01' +%s
# Current time
date +%sRelated skills
How it compares
Pick telegram-reader over generic RSS skills when financial signals live in Telegram channels you already follow and tdl read-only export is sufficient.
FAQ
What does telegram-reader do?
>
When should I use telegram-reader?
>
What are common prerequisites?
--- name: telegram-reader description: > Read Telegram channels and groups for financial news and market research using tdl (read-only).
Is Telegram Reader safe to install?
skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.