tgcli
Skill43 starsChanged 5 months agoMITView on GitHub
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.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- TechNickAI/openclaw-configtheir own version, first seen Apr 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- TechNickAI/openclaw-config★ 76same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when the user:
- Very specific: line 93
All commands support --json for structured output:
- Very specific: line 102
Use --source live|archive|both when listing or searching messages.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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"Backfill & Service
tgcli backfill --chat @channel # backfill one chat (auto-starts the server, follows progress)
tgcli backfill --chat @channel --background # enqueue and return the job id
tgcli backfill --chat @channel --depth 5000 --min-date 2024-01-01T00:00:00Z
tgcli backfill status # active backfills + server status
tgcli backfill count # number of in-progress backfills
tgcli backfill wait # block until the queue drains
tgcli backfill cancel --chat @channel # stop a chat's backfills
tgcli channels watch --chat @channel # subscribe a chat for archiving (queues a backfill)
tgcli channels unwatch --chat @channel # stop archiving a chat
tgcli backfill --follow # track the server's queue to completion (`sync` is a silent alias)
tgcli service install
tgcli service startTelegram and archive commands (channels, messages, send, media, topics, tags,
metadata, contacts, groups, folders) run through the always-on control server,
not the CLI. The CLI is a thin client: it auto-starts tgcli server in the
background when one isn't running, has it execute the operation against its warm
connection and database, then renders the result; the server shuts itself down
once idle. config, service, doctor, and auth stay local. Foreground
backfill --chat follows progress on stderr; Ctrl-C detaches (the job keeps
running — check tgcli backfill status).
Contacts & 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.sendcommands time out after30sby default so they never hang on a stuck connection. Override with--timeout 5mor disable with--timeout 0. Long-running commands (backfill,--follow,server) are unbounded by default.backfillis the canonical archive command;sync(andchannels sync --enable/--disable) keep working as aliases. Preferchannels watch/channels unwatchto subscribe/unsubscribe a chat.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

