telegram

v2026.09.24

Telegram Bot development playbook: bot fundamentals, aiogram 3 patterns (handlers/middlewares/FSM), webhooks, keyboard UX, inline mode, Mini Apps, payments (Stars/subscriptions), authentication. Use when building or modifying Telegram bots, setting up webhook infrastructure, implementing inline keyboards/callback queries, integrating Telegram payments or Stars, or working with aiogram 3 handlers and FSM. Keywords: Telegram, aiogram, Bot API, webhook, handlers, middlewares, FSM, inline keyboard, reply keyboard, callback_query, inline mode, Mini Apps, Web Apps, payments, Telegram Stars, Login Widget.

GitHub
安装命令
npx skhub add itechmeat/telegram
Markdown
SKILL.md

Telegram (Skill Router)

Router skill: pick the reference that matches your task.

Quick Navigation

TaskReference
New to Telegram botsbots-overview.md
Bot capabilities overviewbot-features.md
API methods/typesbot-api.md
Webhook setup & securitywebhooks.md
aiogram 3 handlers/FSMaiogram-patterns.md
Keyboard UXkeyboard-design.md
Inline modeinline-mode.md
Mini Apps (Web Apps)mini-apps.md
Payments (Stars)payments.md
Authentication (Login Widget, URL Auth)authentication.md
Rate limits & performanceperformance.md

Critical Prohibitions

  • ❌ No polling + webhooks simultaneously for same bot
  • ❌ No hardcoded tokens/secrets — use environment variables
  • ❌ No secrets in callback_data or logs
  • ❌ No ignoring answer_callback_query — always respond
  • ❌ No blocking work in webhook handlers — use background tasks
  • ❌ No trusting Login Widget data without hash verification

Definition of Done

  • Webhook handlers validate X-Telegram-Bot-Api-Secret-Token
  • Keyboards: max 2 buttons per row, mobile-first
  • Callback data validated, not trusted blindly
  • Handlers are idempotent or have de-duplication

Release Note (3.29.x - 3.31.x / Bot API 10.1 - 10.3)

  • aiogram 3.31.0 adds full Bot API 10.3 support, bringing rich messages (rich block buttons, expandable block quotations, document blocks), ephemeral messages (EphemeralMessageParameters, message drafts with can_stop/keep_on_stop), and new reply-markup controls (DisabledButton, force_reply). 3.30.0 added Bot API 10.2 and 3.29.0 added Bot API 10.1. Assume the newer method/type schema when targeting recent aiogram.
  • 3.31.0 also fixes webhook-path dispatcher context loss, Bot API-level parse_mode not applying to newer photo/video entities, live-photo content-type detection, and territory-specific i18n locale resolution; vulnerable dependencies were bumped to patched versions.
  • 3.29.1 fixes a severe (exponential) slowdown when validating nested unions, so heavy handler/filter models parse far faster on the patched line.

Release Note (3.28.x / Bot API 10.0)

  • aiogram 3.28.x adds Bot API 10.0 support, bringing guest-mode updates, richer poll/media flows, live photos, reaction-management methods, and managed/business-bot access settings.
  • The 3.28.1+ patch line also fixes InputPollOption.media validation, so poll/media integrations should assume the newer schema and the patched aiogram serializer behavior.

Links

Related Skills

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/telegram

默认分支

master

最新提交

7ae8a00

Tree SHA

47f5439