telegram-workflow

telegram-workflow is a skill for Claude Code from sanjar-x/claudegram. It costs 97 tokens per session (2,819 once invoked), scanned A, original, MIT.

A set of rules for using a personal Telegram account through an integration, including reading chats and managing messages.

In plain words
What is it for?
It is for safely reading chats, preparing or sending messages with approval, managing conversations, and handling groups or media.
Why use it?
It helps prevent accidental messages, deletions, read-status changes, or account actions that could affect the user's Telegram account.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

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

Good fit It is for safely reading chats, preparing or sending messages with approval, managing conversations, and handling groups or media.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjar-x/claudegram/telegram-workflow
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 telegram-workflow
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 telegram-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjar-x/claudegram/telegram-workflow.svg)](https://agentmods.dev/skills/sanjar-x/claudegram/telegram-workflow)
Your own site
<a href="https://agentmods.dev/skills/sanjar-x/claudegram/telegram-workflow"><img src="https://agentmods.dev/badge/skills/sanjar-x/claudegram/telegram-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,819 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.00097 $0.02819
Opus 5 $0.00048 $0.01409
Sonnet 5 $0.00019 $0.00564
Haiku 4.5 $0.00010 $0.00282

Measured 7d ago against content hash 856c9bdb91f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

telegram-workflow 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 7d 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:

skills/telegram-workflow/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Работа с Telegram через claudegram

MCP-сервер claudegram даёт доступ к личному аккаунту пользователя через MTProto (не бот). 58 типизированных tools, разбитых по категориям.

Базовые принципы безопасности

  1. Никогда не отправляй сообщения без явного подтверждения. Намерение «составить черновик» ≠ намерение отправить. Покажи проект текста и жди слов вроде «отправь / шли / да».
  2. delete_message(revoke=True) — необратимо. Дефолт False (только у себя). Hook guard-delete требует подтверждения. Не передавай True без явного запроса юзера.
  3. Не помечай прочитанным автоматически. mark_read — только по явной просьбе. Иначе пользователь потеряет визуальные индикаторы непрочитанного.
  4. Деструктивные операции на чатах: kick_participant, ban_participant, delete_dialog, leave_chat, terminate_authorization, block_userвсегда показывай action + entity и жди "да".
  5. Markdown в send_message/edit_message. Если в тексте есть *, _, [, ], ~, \``, и это **не** разметка — передай parse_mode="none"`, иначе Telegram упадёт с ParseMode-error.
  6. Сессия — это пароль. Файл *.session в ${CLAUDE_PLUGIN_DATA} даёт полный доступ к аккаунту. Никогда не предлагай пересылать его, копировать в чат, коммитить.
  7. invoke_raw — крайний инструмент. Используй только если нет high-level tool. Можешь случайно изменить состояние аккаунта или нарваться на flood-wait.

Каталог инструментов

Все имена под префиксом mcp__plugin_claudegram_claudegram__. Сгруппированы по модулям.

Identity / Account (server/tools/identity/account.py)

Tool Назначение
get_me Кто я залогинен
get_authorizations Список активных сессий аккаунта (другие устройства)
terminate_authorization Завершить чужую сессию (по hash)
update_profile Изменить имя/фамилию/био
set_online Online/offline статус

Messaging (server/tools/messaging/{messages,history,pins,reactions}.py)

Tool Назначение
send_message Отправить (parse_mode, reply_to, silent, link_preview, schedule_unix)
edit_message Отредактировать своё
delete_message Удалить (revoke=False default)
forward_message Переслать (silent, drop_author)
get_history Последние N (offset_id, min_id, from_user, reverse)
search_messages Поиск по тексту (chat, from_user)
mark_read Прочитано (max_id, clear_mentions)
pin_message Закрепить (notify, pm_oneside)
unpin_message Открепить одно или все
react_message Поставить эмодзи-реакцию ("" чтобы снять)
send_dice 🎲/🎯/🏀/⚽/🎰/🎳

Read the full file on GitHub · 173 lines

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. 7d ago First seen · 173 lines · 97 tokens per session scan A 856c9bdb91f4

Subscribe to this mod's changes

telegram-workflow is a skill published in the GitHub repository sanjar-x/claudegram (2 stars, last pushed 4mo ago), licensed MIT. It adds 97 tokens to every session and 2,819 once invoked, about $0.0005 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