Skip to content
agents.store
devdevelopment

grammy-dev

grammY (Telegram bot framework) dev plugin for Agents Store. Covers bot core, filter queries, middleware, commands, keyboards, sessions, conversations, files, payments, deployment, scaling, and the full @grammyjs/* plugin catalog for Node.js/Deno/TypeScript bot developers.

v1.1.3Updated

  • grammy
  • grammyjs
  • telegram
  • bot
  • telegram-bot
  • typescript
  • nodejs
  • deno
  • dev
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install grammy-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (16)

  • api-reference

    This skill should be used when the user asks for "grammY API reference", "Bot API method", "ctx.api signature", "sendMessage parameters", "answerCallbackQuery", "editMessageText", "getChat", "specific Telegram Bot API endpoint", or needs precise method signatures and parameter details for the grammY Bot API client.

  • commands-and-keyboards

    This skill should be used when the user asks about "slash commands in grammY", "bot.command", "setMyCommands", "inline keyboard", "reply keyboard", "callback query", "buttons in Telegram bot", or needs to add interactive commands and keyboards to a grammY bot.

  • conversations

    This skill should be used when the user asks about "grammY conversations plugin", "@grammyjs/conversations", "multi-step wizard", "ask user for input", "conversation.wait", "conversation.form", "checkpoint and rewind", "conversation menu", "wait timeout", "persist conversations", or needs to model multi-message dialog flows in a grammY bot.

  • deployment-hosting

    This skill should be used when the user asks about "deploy grammY bot", "webhookCallback", "long polling vs webhooks", "deploy to Cloudflare Workers", "deploy to Vercel", "deploy to Deno Deploy", "Fly.io grammY", "Heroku Telegram bot", "Supabase Edge Functions", "VPS bot deployment", "Firebase functions Telegram", "Zeabur", or needs to put a grammY bot into production.

  • error-handling

    This skill should be used when the user asks about "grammY error handling", "bot.catch", "GrammyError", "HttpError", "BotError", "errorBoundary", "bot crashed", "unhandled promise rejection in bot", or needs to understand the three error types grammY throws and how to catch them.

  • examples

    This skill should be used when the user asks "show me a complete grammY example", "give me a full grammY bot file", "example of a Telegram bot with menu", "complete echo bot in grammY", "example session counter", "example webhook bot Cloudflare Workers", "example conversation form bot", or wants end-to-end scenario walkthroughs rather than isolated snippets.

  • files-and-media

    This skill should be used when the user asks about "send photo in grammY", "send file", "send document", "send video", "InputFile", "send media group", "download user file", "getFile", "voice message", or needs to handle media uploads or downloads in a Telegram bot.

  • filter-queries

    The grammY filter query syntax of bot.on. Covers the update tree (message, edited_message, channel_post, callback_query), colon paths such as message:text or message:entities:url, wildcard and shortcut forms (msg, edit, :text, :file), combining queries as OR arrays or AND chains, and how ctx is type-narrowed. Use when choosing which updates a handler receives. For command handlers use commands-and-keyboards, for handler order and next() use middleware.

  • middleware

    This skill should be used when the user asks about "grammY middleware", "bot.use", "Composer", "middleware ordering", "skip handler", "compose plugins", "custom middleware", or needs to understand how grammY chains and routes update handlers.

  • payments-business-games

    This skill should be used when the user asks about "Telegram Stars in grammY", "sendInvoice", "pre_checkout_query", "successful_payment", "XTR currency", "Telegram payments", "Business connection", "business_message", "Telegram games", "createInvoiceLink", or needs to integrate Telegram payments, Business mode, or games into a grammY bot.

  • plugins-catalog

    This skill should be used when the user asks about "grammY plugins", "what plugins are available for grammY", "@grammyjs", "hydrate plugin", "parse-mode plugin", "i18n", "ratelimiter", "router", "emoji", "chat-members", "stateless-question", "fluent", "commands plugin", "stream plugin", "files plugin", or needs an overview of the official grammY plugin ecosystem.

  • scaling-runner

    This skill should be used when the user asks about "grammY runner", "@grammyjs/runner", "concurrent updates in grammY", "rate limit grammY", "transformer-throttler", "auto-retry", "sequentialize", "high-throughput Telegram bot", or needs to scale a grammY bot beyond default sequential polling.

  • sdk-patterns

    grammY (Telegram bot framework) code patterns - creating a Bot, reading the Context (ctx.from, ctx.chat), handlers with bot.command, bot.hears and bot.on, ctx.reply versus ctx.api or bot.api for other chats and scheduled posts, editing and deleting messages, bot.init, and typing a custom Context with plugin flavors (session). Use for how-do-I-write-this questions in grammY code. For filter queries use filter-queries, for keyboards commands-and-keyboards, for session storage sessions.

  • sessions

    This skill should be used when the user asks about "grammY session", "store user state", "ctx.session", "session storage", "Redis session", "MongoDB session", "PostgreSQL session", "free session storage", "lazy session", "multi session", or needs to persist per-chat data across messages.

  • setup

    This skill should be used when the user asks to "install grammY", "create a Telegram bot", "set up my first bot", "verify grammY installation", "get a bot token", "BotFather", or needs to bootstrap a brand-new grammY project from zero to a running echo bot.

  • troubleshoot

    This skill should be used when the user reports that "grammY bot is broken", "401 Unauthorized", "409 Conflict", "bot not responding", "double replies", "TypeScript error in grammY", "ctx.session is undefined", "conversations not working", "bot only responds once then stops", or any other grammY runtime / type / deployment failure.

Agents (1)

  • grammy-developer

    Use this agent when the user needs help writing or modifying Telegram bot code with the grammY framework — implementing handlers, wiring up plugins (sessions, conversations, menu, i18n), building webhook adapters for a hosting platform, or debugging grammY-specific errors. <example> Context: User is starting a fresh Telegram bot project. user: "Help me build a Telegram bot that asks the user for their name, then their email, and stores it" assistant: "I'll use the grammy-developer agent to scaffold a conversation-based bot with @grammyjs/conversations and sessions." <commentary>Multi-step user input across messages → grammY conversations plugin; persistent storage → session plugin. The agent knows the right combination.</commentary> </example> <example> Context: User is debugging a deployed bot. user: "My grammY bot deployed to Cloudflare Workers replies twice to every message. What's wrong?" assistant: "I'll use the grammy-developer agent to diagnose the long-polling-vs-webhook collision." <commentary>Classic grammY production bug — `bot.start()` left in code that also handles a webhook. Agent knows the diagnosis path.</commentary> </example> <example> Context: User wants advanced bot features. user: "Add Telegram Stars payments to my bot — users should be able to buy a one-time `pro` upgrade" assistant: "I'll use the grammy-developer agent to wire up sendInvoice with XTR currency, the pre_checkout_query handler, and the successful_payment listener." <commentary>Payments flow needs three distinct handlers and a specific currency code. Agent knows the full handshake.</commentary> </example>

README

Claude Code plugin that turns Claude into a grammY specialist for building Telegram bots in Node.js, Deno, or TypeScript.

grammY is the modern Telegram Bot framework — see https://grammy.dev. This plugin gives Claude authoritative knowledge of grammY's bot core, filter-query DSL, middleware system, all official @grammyjs/* plugins, and deployment patterns across every supported hosting platform. It targets grammY 1.46 (Telegram Bot API 10.3).

What you get

16 skills (auto-trigger from natural-language requests):

SkillTriggers on
setup"install grammY", "create my first Telegram bot", "verify bot token"
sdk-patterns"use grammY Bot class", "send a message", "context object"
filter-queries"bot.on filter", "listen for photos", "filter query DSL"
middleware"bot.use", "Composer", "middleware ordering"
error-handling"bot.catch", "GrammyError", "error boundary"
commands-and-keyboards"slash command", "inline keyboard", "callback query"
sessions"session plugin", "store user state", "Redis session", "lazy session"
conversations"@grammyjs/conversations", "multi-step wizard", "form input"
files-and-media"send photo", "InputFile", "download file"
plugins-catalog"grammY plugins list", "hydrate", "i18n", "menu plugin"
scaling-runner"@grammyjs/runner", "throttler", "auto-retry", "concurrency"
deployment-hosting"webhook vs polling", "deploy to Cloudflare Workers", "Vercel", "VPS"
payments-business-games"Telegram Stars", "sendInvoice", "Business connection", "games"
api-reference (manual)curated Bot API method reference, opens on explicit ask
troubleshoot"401 Unauthorized", "Conflict", "bot not responding"
examples"show a complete grammY example" — opens scenario library

1 agent: grammy-developer — invokes when the user wants help writing actual grammY code (/start handlers, webhook adapters, plugin integration).

2 bundled scripts (under scripts/):

  • init-bot.sh <dir> — scaffolds a fresh TypeScript grammY project (package.json, tsconfig.json, src/bot.ts, .env.example, .gitignore).
  • generate-webhook-adapter.sh <framework> <out-file> — emits a webhookCallback adapter for express, fastify, hono, cloudflare, or https (vercel is accepted as an alias — grammY has no Vercel adapter; Vercel Node.js functions use the https one).

Install

This plugin lives in the AGENTS.STORE Public Plugins marketplace.

/plugin install grammy-dev

No environment variables. No .mcp.json. Pure knowledge plugin.

Prerequisites

  • Node.js 22 or 24 LTS (or Deno 2.x, or Bun 1.x) for actually running a bot you build — Node 18 and 20 are end-of-life.
  • A bot token from @BotFather for your bot.

Claude doesn't need either to give you grammY code — the prerequisites are for your bot, not the plugin.

Out of scope

  • This plugin teaches Claude how to build a Telegram bot. To operate a Telegram user account programmatically (read DMs, send messages from a user phone number), use a separate MTProto user-account client (for example Telethon or GramJS) instead.
  • This plugin does not bundle any MCP server. grammY is a code framework — it does not run a hosted service Claude can call.

License

MIT.