tg-cli
Sync, search, and export Telegram chats from terminal
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install tg-cli?▼
Run `npx skills add jackwener/tg-cli --all -g -y` in your terminal to install this skill globally for your agent.
How to search Telegram messages from the terminal?▼
Run `tg refresh` to sync your chats locally, then use `tg search "keyword"` or `tg search "Rust|Golang" --regex` to find matching messages instantly.
Does tg-cli need a Telegram bot token?▼
No. It uses your own Telegram account over MTProto with built-in desktop credentials, so you just log in with your phone number and verification code.
Can tg-cli monitor groups in real time?▼
Yes. Run `tg listen --persist` to keep a near-real-time local cache that reconnects automatically, or schedule `tg refresh` with cron or systemd.
Is tg-cli output readable by AI agents?▼
Yes. Every major command supports `--yaml` and `--json` structured output, and YAML is the default when output is piped to another program.
Related Repositories in Content & Communication
View All in Content & Communication→skills
Official Anthropic skills for documents, design, and developer workflows
humanizer
Rewrite AI-sounding text so it reads like a person wrote it
UniGetUI
Automate software translation reviews, diffs, and localization quality checks