tg-cli
Sync, search, and export Telegram chats from the terminal
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install tg-cli?▼
Run `npx skills add public-clis/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" --yaml` to find matching messages instantly from the local cache.
Does tg-cli need a Telegram bot token?▼
No. It uses your own Telegram account over MTProto with built-in Telegram Desktop credentials, so no bot or app registration is required.
Does tg-cli work with Claude Code and other agents?▼
Yes. It ships a standard SKILL.md and outputs structured YAML by default, so agents like Claude Code, Cursor, and Codex can call it directly.
Can I keep my Telegram cache updated automatically?▼
Yes. Use `tg listen --persist` for a near-real-time cache, or schedule `tg refresh` with the included cron and systemd timer examples.
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