tg-reply

tg-reply is a skill for Claude Code from sanjar-x/claudegram. It costs 28 tokens per session (357 once invoked), scanned A, original, MIT.

A guided way to reply to a specific message in a Telegram chat, using a Telegram connection provided through an MCP server.

In plain words
What is it for?
Use it when you need to look up a Telegram message, prepare a reply, and send that reply attached to the original message.
Why use it?
It helps prevent replies being sent to the wrong message by checking the message and showing the proposed text before sending. It also requires explicit confirmation before the message is sent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claudegram plugin — 7 skills, 3 commands, 5 hooks, 1 MCP server shipped together

Good fit Use it when you need to look up a Telegram message, prepare a reply, and send that reply attached to the original message.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjar-x/claudegram/tg-reply
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sanjar-x/claudegram --skill tg-reply
Clone the repo
git clone --depth 1 https://github.com/sanjar-x/claudegram

Made for: Claude Code.

Or install claudegram, the plugin that ships this one along with the rest of its 7 skills, 3 commands, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tg-reply

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-reply/github.svg)](https://agentmods.dev/skills/sanjar-x/claudegram/tg-reply)
Your own site
<a href="https://agentmods.dev/skills/sanjar-x/claudegram/tg-reply"><img src="https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-reply/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tg-reply

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanjar-x/claudegram/tg-reply"><img src="https://agentmods.dev/badge/skills/sanjar-x/claudegram/tg-reply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00357
Opus 5 $0.00014 $0.00179
Sonnet 5 $0.00006 $0.00071
Haiku 4.5 $0.00003 $0.00036

Measured 9d ago against content hash 3a89f1320f9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tg-reply scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • tg-reply — 100% identical, 0 lines differ
skills/tg-reply/SKILL.md · 33 lines

What it actually says

Ответ на конкретное сообщение в Telegram.

Аргументы пришли как: $ARGUMENTS

Парсинг:

  1. Чат — первое слово.
  2. message_id — второе слово, целое число.
  3. Текст — всё остальное.

Алгоритм:

  1. Разбери $ARGUMENTS. Если хотя бы одного из трёх не хватает — попроси уточнить.
  2. Если чат — @username, преобразуй через resolve_username.
  3. Подтяни через get_history(chat=..., limit=1, offset_id=<message_id>+1) сообщение с нужным id и покажи мне его текст и автора — чтобы я убедился, что отвечаешь на правильное.
  4. Покажи мне финальный текст ответа.
  5. Жди подтверждения «отправляй».
  6. Вызови send_message(chat=..., text=<текст>, reply_to=<message_id>). Если в тексте есть символы Markdown без намерения форматирования — parse_mode="none".
  7. Покажи id ответа.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 33 lines · 28 tokens per session scan A 3a89f1320f9d

Subscribe to this mod's changes

tg-reply is a skill published in the GitHub repository sanjar-x/claudegram (2 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dream

Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase…

oprogramadorreal/optimus-claude · 85 tokens

masterplan-detect

Suggest /masterplan import only when legacy masterplan bundle state files (docs/masterplan/ /state.yml at schema 5.x) exist without a matching v8 run. Generic planning artifacts (PLAN.md, TODO.md, ROADMAP.md, design docs, PR task lists) are NOT importable — no /masterplan import can ingest them; mention them only as…

rasatpetabit/masterplan · 116 tokens

skill-creator

Authors and audits Claude Code skills: frontmatter, directory layout, scope, invocation control, and bundled references or scripts.

anilcancakir/claude-code · 28 tokens

git-master

Git expert: atomic commits with style detection, rebase and squash, and history archaeology through blame, bisect and pickaxe.

anilcancakir/claude-code · 29 tokens

guide

Open the showreel visual setup guide, or walk the user through installing the plugin's dependencies. Use when the user asks how to set up showreel, install its dependencies, pre-warm the capture motor, install vhs, or says "showreel guide", "setup guide", "como instalar o showreel".

HeyRenan/showreel · 70 tokens

showreel

Use when the user wants to explain or document something visually — annotated screenshots, feature demos, flow GIFs, terminal recordings, before/after comparisons — or says "take a screenshot", "record this flow", "make a gif of", "show how this works", "annotate this page", "demo this feature", "grava um gif", "tira…

HeyRenan/showreel · 98 tokens