telegram-bot-anti-patterns

telegram-bot-anti-patterns is a skill for Claude Code, Codex from agntdev/skills. It costs 200 tokens per session (1,640 once invoked), scanned A, original, MIT.

A final review checklist for Telegram bots, covering common implementation and user-experience mistakes. Telegram bots are programs people use through chats, buttons, and commands.

In plain words
What is it for?
Use it to check bot dialogs, buttons, callback handling, chat identifiers, commands, keyboard design, and other usability and completeness issues before shipping.
Why use it?
It catches problems that can make a bot confusing, incomplete, or fail a review before it is released.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/agntdev/skills/telegram-bot-anti-patterns
Any agent
npx skills add agntdev/skills --skill telegram-bot-anti-patterns
Clone the repo
git clone --depth 1 https://github.com/agntdev/skills

Made for: Claude Code, Codex.

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-bot-anti-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/agntdev/skills/telegram-bot-anti-patterns.svg)](https://agentmods.dev/skills/agntdev/skills/telegram-bot-anti-patterns)
Your own site
<a href="https://agentmods.dev/skills/agntdev/skills/telegram-bot-anti-patterns"><img src="https://agentmods.dev/badge/skills/agntdev/skills/telegram-bot-anti-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00200 $0.01640
Opus 5 $0.00100 $0.00820
Sonnet 5 $0.00040 $0.00328
Haiku 4.5 $0.00020 $0.00164

Measured 4d ago against content hash 5a617e470141, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

telegram-bot-anti-patterns 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 4d 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.

skills/telegram-bot-anti-patterns/SKILL.md · 101 lines

How it starts

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

telegram-bot-anti-patterns Skill

The final review pass before shipping a Telegram bot — 21 anti-patterns (each one its own file under references/) plus a 21-item UX review checklist. For the rules these anti-patterns break, see telegram-bot-ux-rules. For flow patterns, see telegram-bot-flow-patterns.

Built for the agntdev pipeline. Run through the checklist in references/ux-review-checklist.md before shipping the bot. If any item is "no", the bot isn't done.


Anti-patterns index

Each entry is one file under references/. Read individually when you suspect you're doing it.

# Anti-pattern Why File
1 New message per dialog step Spams chat 01-message-per-step.md
2 Button label as a question Buttons are actions, not queries 02-button-as-question.md
3 Wall-of-text /start Mobile scrolls 03-wall-of-text-start.md
4 Emoji-only keyboards Decoration ≠ clarity 04-emoji-only-keyboards.md
5 Missing answerCallbackQuery() Spinner never stops 05-missing-answer-callback-query.md
6 Hardcoded chat_id Multi-tenant fails 06-hardcoded-chat-id.md
7 No /help command Users get stuck 07-no-help-command.md
8 No empty state New users see nothing 08-no-empty-state.md
9 Group ambient without privacy-mode off Telegram doesn't deliver 09-group-ambient-without-privacy-mode.md
10 Secret-feature discovery Users can't find features 10-secret-feature-discovery.md
11 Edit message >48h old "Message to edit not found" 11-edit-message-too-old.md
12 HTML without escaping </>/& "Can't parse entities" 400 12-html-without-escaping.md
13 Non-ASCII callback_data >30 chars BUTTON_DATA_INVALID (64 BYTES) 13-callback-data-bytes-vs-chars.md
14 Missing input_field_placeholder Users see empty input field 14-missing-input-field-placeholder.md
15 No copy_text for IDs/codes Users long-press, 4 taps wasted 15-no-copy-text-for-ids.md
16 bot.catch leaks err.message/err.stack Leaks internals, scares users 16-bot-catch-leaks-stack.md
17 Edit-in-place on a message you don't own Telegram rejects 17-edit-in-place-not-owned.md
18 getUpdates polling without backoff Tight loop hammers the API 18-polling-without-backoff.md
19 "Reply /cancel to stop" without a /cancel handler Dead instruction 19-cancel-instruction-without-handler.md
20 Sending media >20MB on official API Webhook delivery fails 20-media-over-webhook-limit.md
21 DM a user by their Telegram ID (no invite flow) Bot can't reach members (403) 21-dm-user-by-id.md

Read the full file on GitHub · 101 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. 4d ago First seen · 101 lines · 200 tokens per session scan A 5a617e470141

Subscribe to this mod's changes

telegram-bot-anti-patterns is a skill published in the GitHub repository agntdev/skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 200 tokens to every session and 1,640 once invoked, about $0.0010 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens