/telegram-skills:tg-operator-cardsfrom telegram-skills
Formats bot events (payments, orders, enrollments, moderation) into concise operator cards for Telegram admin chats. Produces review cards, receipts, and decision footers in parse_mode HTML.
Ships in telegram-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Input: the facts of one event. Output: a short sendMessage text in parse_mode: HTML for the operator of the bot. Three shapes share one layout: the review card (waits for a decision), the receipt (the bot already acted), and the decision footer (records who decided and when).
Not for messages to customers, digests of many events (tg-rich-digest), tables (tg-rich-messages), or rewriting agent prose (tg-reply-rewrite). Write in the operator's language.
✅ Enrolled: Ada (@ada), 🧾 Order #482 with the person on the next line. Bold the outcome and the name.<code>: product code, ticket code, ID.Confirmation sent, not sent him the confirmation. In languages with grammatical gender this keeps the card correct for every person.19 000 ₽, not 19000. Name the moment a date refers to: Paid … on 08.11, not a bare date.&, <, > in every dynamic value. Names come from users. One unescaped < and Telegram rejects the whole message with 400 can't parse entities: the action happened, and the operator saw nothing.editMessageText: the same card text, a footer line, and no decision buttons. One event stays one message in the chat.in the bot), so an empty history is not read as a new customer. Leave the current order out of the list. When the history cannot be read, omit the block: none is a claim, not a fallback.tg-widgets). The caption carries the first line and only the facts the widget does not show: a client that draws widgets puts the caption right under the widget, and a repeated fact is read twice. A client without widget support shows only the caption, so its first line still names the outcome and the person. Give the widget a button only for an action the operator takes: no copy button for a value nobody pastes. Groups refuse widgets today, see the delivery table in tg-widgets: there the card stays text. When the server refuses the widget, send the full text card instead.| Part | Limit | Source |
|---|---|---|
| Event block | up to 6 lines | editorial, one glance |
| Person block | count line and up to 5 items | editorial; the count names the total |
| Line | about 45 characters | editorial, no wrap on a phone |
sendMessage text | 4 096 characters after entity parsing | Bot API |
callback_data | 1–64 bytes | Bot API |
An event that needs more than six lines is a report: send it with tg-rich-messages.
Receipt, before:
Enrolled: Ada (@ada). Application #77, Autumn cohort.
Recorded payment 19000 ₽ from 08.11.2026 — the ledger will use it.
Ledger row exists, product code cohort_autumn_early.
Sent him the confirmation in a private message.
Receipt, after:
✅ <b>Enrolled: Ada</b> (@ada)
🧾 Application <b>#77</b> · Autumn cohort
💳 Paid <b>19 000 ₽</b> on 08.11.2026
📒 Ledger: recorded, code <code>cohort_autumn_early</code>
✉️ Confirmation sent
The same receipt when two steps failed (rule 4):
✅ <b>Enrolled: Ada</b> (@ada)
🧾 Application <b>#77</b> · Autumn cohort
💳 Paid <b>19 000 ₽</b> on 08.11.2026
⚠️ Ledger: row not written. Run the same command again, the retry adds it.
⚠️ Message not delivered: the bot is not started or the chat is closed
The receipt with the person block (rule 10), for a returning customer and for a first order:
✉️ Confirmation sent
🎓 Past programs in the bot: <b>2</b>
• Spring cohort · March 2026 · 39 000 ₽
• Summer cohort · June 2026 · 35 000 ₽
✉️ Confirmation sent
🎓 No past programs in the bot
The caption under the widget (rule 11). Plain text: the widget shows the application, the payment and the history, the caption adds the rest:
✅ Enrolled: Ada (@ada)
📒 Ledger: recorded, code cohort_autumn_early
✉️ Confirmation sent
Review card with Confirm and Reject buttons, then the footer after the decision (rule 9):
🧾 <b>Order #482</b> · pinned post
👤 Ada Lovelace (@ada)
🎟 Tickets: <b>2</b>
💳 Card: <b>80 $</b>
✅ <b>CONFIRMED</b> · Grace, 14:02 · code <code>K7Q2</code>
Building a line (rule 8):
from html import escape
head = f"✅ <b>Enrolled: {escape(first_name)}</b> (@{escape(username)})"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub serejaris/telegram-skills --plugin telegram-skills15 skills in this plugin
/tg-bot-opsUse when running a Telegram bot in production: webhook or long polling, allowed_updates, webhook secret token, bot settings from code (setMySettings, getMe, privacy mode, callback_query_mode), botinvite links, 429 and retry_after, file retries, broadcast limits and paid broadcasts, lost updates on shutdown, a poison update after new Bot API types, t.me outage and fallback domains, local Bot API server./tg-capability-mapUse before promising a Telegram feature or designing around one: what a bot can do in Bot API, what lives only in the client or MTProto (scheduled posts, channel stats, poll stats, channel stories, folders, boosts, welcome messages, communities), and what never to promise from a bot./tg-Other plugins' skills for the same job