# telegraf/telegraf

Modern Telegram Bot Framework for Node.js

Repository: https://github.com/telegraf/telegraf
Canonical: https://ross.abutalabs.com/products/telegraf-telegraf
Homepage: https://telegraf.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: bot, telegram, bot-framework, telegram-bot, telegram-bots, bot-api, telegraf, middleware, hacktoberfest, telegram-bot-api
Last push: 2025-01-11T06:02:13+00:00

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

## Adoption (not part of the score)
Stars 9181, forks 943 (observed 2026-08-28T04:10:28.761876+00:00)

## What it is
Telegraf is a modern Telegram Bot API framework for Node.js, written in TypeScript with full Bot API 7.1 support. It offers a middleware-based architecture, webhook compatibility with common HTTP servers, and easy deployment to serverless platforms.

## Use cases
- build a telegram bot in node.js
- handle telegram bot commands and messages
- create a telegram bot with typescript
- deploy a telegram bot on aws lambda
- set up telegram bot webhooks with express
- make a bot that replies to stickers and messages

## When to choose
- you want a lightweight, well-typed Node.js/TypeScript framework for Telegram bots
- you need full Telegram Bot API coverage with middleware extensibility
- you plan to host the bot on serverless platforms like AWS Lambda or Firebase Functions

## When to avoid
- you are building bots for platforms other than Telegram
- you need a Python or Go Telegram bot library
- you want a hosted no-code bot builder instead of a code framework

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, middleware, chatbot, websocket
- domain: chatbots, messaging-platforms, developer-tools
- platform: serverless, cross-platform
- tags: telegram-bot, bot-api, telegram, webhooks, typescript, automation, nodejs

## Member repositories
- telegraf/telegraf (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.761876+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-29T17:23:20.962217+00:00, confidence not recorded.
  - readme: https://github.com/telegraf/telegraf (fetched 2026-08-28T04:10:28.761876+00:00, sha 24a5aa22a062)
  - homepage: https://telegraf.js.org (fetched 2026-08-29T08:23:38.645718+00:00, sha f643e9b53ef6)
  - site_page: https://telegraf.js.org/v3 (fetched 2026-08-29T08:23:38.648821+00:00, sha 0d5b2e9a9c5b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
