plugins/social-readers/skills/telegram-reader/SKILL.md
Read Telegram channels and groups for financial news and market research using tdl (read-only). Use this skill whenever the user wants to read Telegram channels, export messages from financial Telegram groups, list their Telegram chats, search for news in Telegram channels, or gather market intelligence from Telegram. Triggers include: "check my Telegram", "read Telegram channel", "Telegram news", "what's new in my Telegram channels", "export messages from", "list my Telegram chats", "financial news on Telegram", "crypto Telegram", "market news Telegram", any mention of Telegram in context of reading financial news, crypto signals, or market research. This skill is READ-ONLY — it does NOT support sending messages, joining channels, or any write operations.
npx skillsauth add himself65/finance-skills telegram-readerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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 \| 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.
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.
Method A: QR Code (recommended — fastest)
tdl login -T qr
A 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 code
The 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 login
This 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.
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 commands
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 |
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) |
# 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'"
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.json
tdl chat ls --limit 1 before other commands to verify the session is valid--all --with-content when exporting messages for reading — without these flags, tdl only exports media messages-o FILE to save exports to a file, then read the JSON — this is more reliable than parsing stdout-T last -i 20 unless the user asks for morechat ls to help users find the right channel before exporting-T time filterAfter 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.json
The export JSON contains message objects with fields like id, date, message (text content), from_id, views, and media metadata.
After fetching data, present it clearly for financial research:
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 |
references/commands.md — Complete tdl command reference for reading channels and exporting messagesRead the reference file when you need exact command syntax or detailed flag documentation.
tools
Generic read-only fallback for any source opencli covers but this repo has no dedicated reader for — Yahoo Finance, Bloomberg, Reuters, Barchart, Eastmoney, Xueqiu, Sinafinance, Reddit, HackerNews, Substack, Medium, Weibo, Bilibili, Xiaohongshu, Zhihu, arXiv, Google Scholar, Apple Podcasts, Xiaoyuzhou, Spotify, YouTube, Weixin, Amazon, and more. Triggers: "use opencli to read", "grab the frontpage from hackernews", "read reddit r/wallstreetbets", "fetch Eastmoney hot stocks", "pull Xueqiu feed", "get Bloomberg markets headlines", "search arXiv for", any request to read from a site where a specialized skill does not exist but opencli does. FALLBACK — prefer twitter-reader, linkedin-reader, discord-reader, telegram-reader, or yc-reader when the source matches. READ-ONLY — never invoke write operations.
development
Look up Y Combinator companies, batches, and startup ecosystem data using the yc-oss API (read-only). Use this skill whenever the user wants to research YC-backed startups, find companies in a specific batch or industry, check which YC companies are hiring, explore top YC companies, or analyze startup trends by sector or tag. Triggers include: "YC companies in fintech", "who's in the latest YC batch", "YC startups hiring", "top Y Combinator companies", "find YC companies tagged AI", "W25 batch", "S24 companies", "YC stats", "Y Combinator portfolio", "startup research", "which YC companies do X", "venture research on YC", any mention of Y Combinator, YC batch, or YC-backed companies in the context of startup research, venture analysis, or market intelligence. This is a read-only data source — the API is a static JSON dataset updated daily.
tools
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my bookmarks", "who follows", "look up @user", "what's trending about", "market sentiment on Twitter", "what are people saying about AAPL", "recent tweets from @elonmusk", "show me @user's posts", "fintwit", any mention of Twitter/X in context of reading financial news or market research. This skill is READ-ONLY — it does NOT support posting, liking, retweeting, or any write operations.
tools
Query Funda AI financial data via two surfaces: the MCP server at https://funda.ai/api/mcp for analyst-grade research synthesis (DCF, comps, earnings previews/recaps, sector deep-dives, SEC filings, transcripts, supply-chain mapping, ownership flow, macro framing) via the agent_chat tool — OR the REST API at https://api.funda.ai/v1 with FUNDA_API_KEY for raw data (real-time quotes, intraday candles, EOD prices, financial statements, options chains/greeks/GEX, supply-chain KG, social sentiment, news, calendars, FRED, ESG, congressional trades, AI hiring signals). Triggers: "funda", "funda.ai", real-time quote, stock price, intraday, balance sheet, income statement, options chain, DCF, comps, earnings preview/recap, analyst estimates, 10-K/10-Q/8-K, transcript, ownership flow, gamma exposure, supply chain, sector deep-dive, congressional trades, FRED. Prefer MCP for synthesis/analysis questions; use REST for raw structured data the MCP declines.