What problem does it solve?
This Skill helps you design and implement Telegram bots that work reliably in production, including stateful conversations, correct UI flows, payments/subscriptions, and robust error handling under Telegram API constraints.
Core Features & Use Cases
- GrammY-first architecture: Strong TypeScript context typing, global error handling, and graceful shutdown so you don’t lose updates.
- Menus, inline keyboards, and callback flows: Build interactive UX with dynamic menus and reliable callback processing.
- FSM-style conversation state: Use session-driven steps for multi-stage registration/checkout and other conversation flows.
- Payments and subscriptions: Implement Telegram Stars flows with pre-checkout validation and successful-payment activation.
- Webhook vs polling deployment patterns: Production webhook handling with secret tokens and webhook setup/teardown guidance.
- Middleware access control & throttling-friendly patterns: Private-chat gating, subscription checks, admin-only commands, and rate-limit-aware messaging.
- Session storage options: Redis adapter patterns for persistence and scalability (plus guidance for SQL-backed storage).
Quick Start
Use the bots skill to design a GrammY Telegram bot with a multi-step registration conversation, inline keyboard confirmations, and Telegram Stars subscription payments.