Telegram CLI for reading/searching messages, syncing archives, and sending or downloading files. Use when the user asks about Telegram chats, messages, contacts, groups, or files.
Resources
21Install
npx skillscat add kfastov/tgcli Install via the SkillsCat registry.
SKILL.md
tgcli
Telegram CLI with background sync.
When to Use
Use this skill when the user:
- Wants to read or search Telegram messages
- Needs recent updates or an inbox-style view of chats
- Asks to send a Telegram message or file
- Wants to download media or files from Telegram
- Wants to look up channels, groups, or contacts
- Needs archive/backfill sync for a chat
Install
npm install -g @kfastov/tgcliOr:
brew install kfastov/tap/tgcliAuthentication
First-time setup needs Telegram API credentials from https://my.telegram.org/apps
tgcli authCommon Commands
Reading
tgcli channels list --limit 20
tgcli messages list --chat @username --limit 50
tgcli messages search "query" --chat @channel --source archive
tgcli topics list --chat @channel --limit 20Files & Media
tgcli media download --chat @channel --id 12345
tgcli send file --to @channel --file ./report.pdf --caption "FYI"Writing
tgcli send text --to @username --message "Hello"Sync & Service
tgcli sync --follow
tgcli sync jobs add --chat @channel --min-date 2024-01-01T00:00:00Z
tgcli service install
tgcli service startContacts & Groups
tgcli contacts search "alex"
tgcli groups list --query "Nha Trang"Output Formats
All commands support --json for structured output:
tgcli messages list --chat @username --limit 5 --json
tgcli channels list --limit 10 --jsonNotes
- Use
--source live|archive|bothwhen listing or searching messages. --jsonis best for AI/tooling pipelines.