Command Palette

Search for a command to run...

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

Tg Cli

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

Read, search and send in the owner's personal Telegram account through tg. Use when the request is about Telegram: a named Telegram chat, group, channel, bot…

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

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

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.

tg commands <path> --json describes one command (arguments, options, exit codes, effects.remote: "write" for a write to Telegram); tg <command> --help is shorter; tg guide lists scenarios.

The profile comes first

The first word is the profile when it is not a command. tg work chats list is profile work. There is no --profile flag; TG_PROFILE does the same. No profile is assumed: without one, an account command exits 2 and lists the profiles (tg session list shows them too). Never pick one for the owner; ask which, unless the task or TG_PROFILE says. personal below stands for the profile the owner chose.

Answer a question from Telegram

  1. Start with tg personal search conversations "<the question>" --like "<a reply that would answer it>" --json: it searches by meaning and words. Pass the question as the owner wrote it (unsure wording, a misspelled name, no chat named); do not cut it to one word. The reply is your one-sentence guess, worded like a chat message. Read the lines of every hit, from_owner ones too: the owner's own conversations come last. When the owner says "I advised / I wrote", add --filter 'from:me'.
  2. Then tg personal search messages "<question>" --discover --json, then key words with tg personal search messages "<words>" (this machine's copy plus Telegram's own search). It takes no --like, --chat or --filter: write from:me and chat:<chat> in its query. Add --backend archive when the owner wants nothing to leave the machine. A find tagged server is not stored; tg personal messages sync --query "<words>" stores it. Every word must match; unsure which word the message uses, join the variants with a capital OR: invoice OR счёт, colour OR color.
  3. Never filter the results yourself (grep -v, jq select) by chat or sender: a hit in a chat you did not expect is often the answer. The first result and its score do not establish an answer.
  4. Read around a hit: tg personal messages context <hit ref>; it and messages show also take <chat> <message id>. The message asked for carries "anchor": true. Every search answers items[].ref; more hits are a page.next step.
  5. Cite each message by its locator. Check dates: a later message can correct an earlier one.
  6. Nothing relevant: search again in other words before saying it is not there. Try the words the answer would contain, one or two key words, a synonym, the other language. A search that stops at its time limit answers query.time-limit: rerun it with --timeout 60s first. A missing coverage entry means the local copy may not reach back: search Telegram (--backend server); ask the owner before a sync. After two or three tries, say what you searched for. Empty hits never prove a message never existed.

Read and send

  • Ids are always strings. Pass them back unchanged; never turn one into a number.
  • A chat name that fits several chats is an error, not a choice. Its JSON carries candidates: [{ id, title }]. Take an id from there and repeat with it; never guess. me is Saved Messages.
  • tg personal chats list --json finds a chat; tg personal messages list <chat> --limit 20 --json reads the latest; tg personal messages send <chat> "text" sends, only as asked (see Boundaries). Multi-line text goes through stdin only: printf 'first\n\nthird' | tg personal messages send me.
  • Exit 14 means an unknown write outcome, not permission to replay it. Check tg personal sends list --json and the chat's history first; the rules for a retry are in messages.

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 in the chat. Vote only as the owner asked, by the answer ids tg personal polls show prints — never by an answer's position.
  • A bot sees a press and a start. messages press takes the number messages show prints under a bot's message; it presses only callback buttons and refuses one that asks for the 2FA password. chats app prints an address that signs the owner in — never paste it anywhere.
  • Delete only the exact messages the owner named, and never add --allow-dangerous, --yes or --for-everyone on your own. A dele
Полный SKILL.md на ClawHub

Установить Tg Cli в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Tg Cli?

Read, search and send in the owner's personal Telegram account through tg. Use when the request is about Telegram: a named Telegram chat, group, channel, bot or contact, what someone said or sent there, sending, editing or deleting something in Telegram, setting up or logging in to Telegram, or syncing its history. For a Telegram question, read this skill first, then start with tg <profile> search conversations "<the question>" --like "<a reply that would answer it>"; read around a hit with tg <profile> messages context <hit ref>.

Как установить скилл Tg Cli?

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

Скилл Tg Cli запускает скрипты?

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

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

Сравнить Tg Cli с