Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tg-cli

БесплатноБез исполняемых скриптовНе проверен

Set up Telegram and read or send messages in the owner's personal account through tg. Use when asked to install or connect Telegram, find a chat or person…

wirecatот wirecat119 установок в других каталогах

Об этом скилле

tg — the owner's personal Telegram from the command line

tg works with the owner's real personal account. A mistake here does not fail a test; it writes to a living person. One call, one action: connect, do it, print, exit.

Read this skill, then discover only the commands relevant to the task. tg commands search messages --json describes one command; tg commands messages --json describes that group. Both include arguments, options, global options and exit codes. Use tg <command> --help for a shorter explanation. Command words form one path, not a list of groups: inspect different groups in separate calls. tg commands --json returns the entire tree when you need an overview; do not read it in full before every task. effects.remote: "write" identifies a write to Telegram; effects.local: "write" alone, a write to this machine. commands --json connects to no account. Its contract field is the shared JSON contract version; it changes only when response fields change incompatibly, not with a package upgrade, so check that field rather than comparing whole outputs. This file holds the traps and boundaries. For a common task, tg guide lists scenarios — the commands in order and why each — and tg guide <name> --json gives one as data; tg commands without --json is the list by section.

Machine execution

tg commands info messages list --json describes one command's schemas and effects. Use --json --no-input for headless work; supply credentials explicitly through a pipe. --json=id,text keeps those fields of each list item, with the page and coverage around them. For ids use --json=id. --max-output-bytes and --max-input-bytes set byte budgets; one-shot actions default to 30 seconds, changed with --timeout; background history fetch jobs have no default deadline. Before a sensitive write, global --dry-run checks syntax and permissions before action; it opens no messenger connection, reserves no write and leaves targets unresolved. See the CLI contract.

The command line is the default. MCP is the rare case for a client that cannot run commands (a chat app, a remote agent): tg <profile> mcp starts the server, tg <profile> mcp config prints the client entry. Its permissions are the profile's, the same as on the command line. Prefer the commands above when you can run them. MCP uses tg_tools_search, then tg_read or tg_write with {command, arguments}. Use the CLI path such as stats messages show. Bots use tg_bot_tools_search/read/write with commands without bot; arguments are the command's options in snake_case. There are no forms; profile permissions decide access and ask permits the requested MCP write. CLI confirmation remains.

Installation readiness

Global npm installation installs this skill only with TG_INSTALL_AGENT set; tg skill install --for all does it later. On Windows, use the one-call installer from the installation guide: it repairs user and current-shell PATH, installs the skill even with disabled lifecycle scripts and verifies bare tg. Read tg skill show and verify your skill is loaded before login. If your process predates installation, refresh your shell PATH from the user/machine environment yourself; do not ask the user to edit PATH.

Telegram drafts

tg personal messages send CHAT "text" --draft saves a draft for the owner to review and send in Telegram. It replaces any existing draft in that chat/topic, so confirm the intended replacement when needed. It sends no message and uses the separate drafts permission. Formatting, --reply-to, --topic and --no-preview work; empty text, attachments, scheduling and other send-only flags are refused. The receipt has saved: true; never describe it as a sent message. Clearing drafts is not exposed.

Message permalinks

tg personal messages link <chat> <message> or tg personal messages link <msg:locator> returns { item: { ref, url, access, reason } } without message content. Channels/supergroups can have public or restricted links; a link grants no membership. Dialogs, basic groups and Saved Messages return only a locator. Offline validates the stored target, never connects and returns no URL. Locators from another account are refused. This differs from graph messages links. Read-only MCP offers tg_read (command: "messages link") with the same result.

Boundaries

  • Send nothing the owner did not ask for. tg personal messages send (also with --reply-to), edit, forward, pin, tg personal reactions add, tg personal polls create, tg personal messages press, tg personal chats start and tg personal chats app only when the owner asked for this exact text in this exact chat. A draft, "we should probably answer", a conclusion drawn from what you read — none of these is a request.
  • **A vote in a public poll shows the owner's name to everyone
Полный SKILL.md на ClawHub

Установить tg-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл tg-cli?

Set up Telegram and read or send messages in the owner's personal account through tg. Use when asked to install or connect Telegram, find a chat or person, read a conversation, or send a message.

Как установить скилл tg-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tg-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tg-cli с