# grammyjs/grammY

The Telegram Bot Framework.

Repository: https://github.com/grammyjs/grammY
Canonical: https://ross.abutalabs.com/products/grammy
Homepage: https://grammy.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: telegram, bot, deno, typescript, nodejs, javascript, telegram-bot
Last push: 2026-08-26T20:29:41+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 1986, "days_push": 7, "days_rel": 7, "gap_med": 18.5, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3722, forks 153 (observed 2026-08-28T04:08:15.470702+00:00)

## What it is
grammY is an open-source framework for building Telegram bots in TypeScript or JavaScript, running on Node.js, Deno, and even browsers. It provides a clean API for handling updates, a rich official plugin ecosystem, and scales from simple echo bots to high-traffic production bots.

## Use cases
- create a telegram bot in typescript
- build a chatbot for telegram
- handle telegram bot commands and messages
- add inline keyboards and inline queries to a bot
- run a telegram bot with long polling or webhooks
- store per-user session state in a telegram bot
- build a scalable telegram bot for high traffic

## When to choose
- you want to build a Telegram bot in TypeScript or JavaScript
- you need first-class TypeScript types and editor autocomplete for the Telegram Bot API
- you want a plugin ecosystem for sessions, keyboards, conversations, and rate limiting
- you need a bot framework that scales from hobby projects to production traffic
- you run on Node.js or Deno

## When to avoid
- you are building bots for platforms other than Telegram
- you need a bot framework in another language like Python or Go
- you want a no-code or low-code bot builder
- your project requires accessing stored chat history, which Telegram does not provide to bots

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, chatbot, middleware, plugin-system, sdk
- domain: chatbots, messaging-platforms, developer-tools, apis
- platform: cross-platform
- tags: telegram-bot, bot-framework, long-polling, webhooks, conversations, grammy, automation, nodejs, deno, typescript, javascript

## Member repositories
- grammyjs/grammY (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.470702+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:29:18.733820+00:00, confidence not recorded.
  - readme: https://github.com/grammyjs/grammY (fetched 2026-08-28T04:08:15.470702+00:00, sha ab563b189251)
  - homepage: https://grammy.dev (fetched 2026-08-29T09:24:25.413675+00:00, sha d6b446eba9ec)
  - site_page: https://grammy.dev/guide/getting-started (fetched 2026-08-29T09:24:25.416332+00:00, sha cd1610a61370)
  - site_page: https://grammy.dev/resources/about (fetched 2026-08-29T09:24:25.420398+00:00, sha ee37a9b8f381)
  - site_page: https://grammy.dev/guide (fetched 2026-08-29T09:24:25.423872+00:00, sha 23009244ec94)
  - registry_npm: https://registry.npmjs.org/grammy (fetched 2026-08-29T09:24:25.425509+00:00, sha 471763b6af6c)
  - site_page: https://grammy.dev/plugins (fetched 2026-08-29T09:24:25.418626+00:00, sha 9e3c78421cad)
  - site_page: https://grammy.dev/resources/faq (fetched 2026-08-29T09:24:25.421990+00:00, sha 186f02e9c969)
- Data as of 2026-08-30T08:39:29.467469+00:00.
