# yagop/node-telegram-bot-api

Telegram Bot API for NodeJS

Repository: https://github.com/yagop/node-telegram-bot-api
Canonical: https://ross.abutalabs.com/products/node-telegram-bot-api
Language: TypeScript
License: MIT
License Family: permissive
Topics: telegram, bot, bot-framework, chatbot, api, nodejs
Last push: 2026-08-24T20:48:28+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": 4084, "days_push": 9, "days_rel": 9, "gap_med": 8, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9203, forks 1646 (observed 2026-08-28T04:10:28.912223+00:00)

## What it is
A runtime-agnostic TypeScript client library for the Telegram Bot API, supporting Node.js, Bun, Deno, Cloudflare Workers, and Vercel Functions. Version 2 is a from-scratch redesign with koa-style middleware, typed API methods, and fluent keyboard builders.

## Use cases
- build a telegram bot in nodejs
- handle telegram inline keyboard callbacks
- send telegram messages from a cloudflare worker
- add middleware to telegram bot update handling
- create a telegram echo bot
- call telegram bot api methods from typescript

## When to choose
- you want a modern, typed Telegram Bot API client for Node.js or edge runtimes
- you prefer middleware-based bot frameworks with command and regex filters
- you need to deploy a Telegram bot to serverless or edge environments

## When to avoid
- you rely on the v1 API, since v2 is not backward compatible
- you need a framework for platforms other than Telegram
- you want a batteries-included bot hosting service rather than a library

## Facets
- artifact type: library
- maturity: active
- function: chatbot, http-client, middleware, sdk
- domain: chatbots, messaging-platforms, apis, developer-tools
- platform: bun, cross-platform
- tags: telegram-bot-api, telegram, bot-framework, runtime-agnostic, edge-ready, typescript, nodejs, deno

## Member repositories
- yagop/node-telegram-bot-api (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.912223+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:17.879345+00:00, confidence not recorded.
  - readme: https://github.com/yagop/node-telegram-bot-api (fetched 2026-08-28T04:10:28.912223+00:00, sha 98a474db1124)
  - registry_npm: https://registry.npmjs.org/node-telegram-bot-api (fetched 2026-08-29T08:23:30.402489+00:00, sha ff362ef2ff03)
- Data as of 2026-08-30T08:39:29.467469+00:00.
