jackwenerjackwenerCommunity·1 Agent Skills Included

tg-cli

Sync, search, and export Telegram chats from terminal

Syncs Telegram chats into a local SQLite cache for fast keyword and regex search. Eliminates endless scrolling and manual copy-paste when finding old messages or monitoring groups. Exports conversations as text, JSON, or YAML and keeps a near-real-time cache for quick daily retrieval.
npx skills add jackwener/tg-cli --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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