/SKILL.md
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.
npx skillsauth add kfastov/tgcli tgcliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
This skill has been flagged as suspicious. Review the scan results before using.
2 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Telegram CLI with background sync.
Use this skill when the user:
npm install -g @kfastov/tgcli
Or:
brew install kfastov/tap/tgcli
First-time setup needs Telegram API credentials from https://my.telegram.org/apps
tgcli auth
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 20
tgcli media download --chat @channel --id 12345
tgcli send file --to @channel --file ./report.pdf --caption "FYI"
tgcli send text --to @username --message "Hello"
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 start
Telegram 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).
tgcli contacts search "alex"
tgcli groups list --query "Nha Trang"
All commands support --json for structured output:
tgcli messages list --chat @username --limit 5 --json
tgcli channels list --limit 10 --json
--source live|archive|both when listing or searching messages.--json is best for AI/tooling pipelines.send commands time out after 30s by default so they never hang on a stuck connection. Override with --timeout 5m or disable with --timeout 0. Long-running commands (backfill, --follow, server) are unbounded by default.backfill is the canonical archive command; sync (and channels sync --enable/--disable) keep working as aliases. Prefer channels watch/channels unwatch to subscribe/unsubscribe a chat.tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.