# tdlib/telegram-bot-api

Telegram Bot API server

Repository: https://github.com/tdlib/telegram-bot-api
Canonical: https://ross.abutalabs.com/products/tdlib-telegram-bot-api
Homepage: https://core.telegram.org/bots
Language: C++
License: BSL-1.0
License Family: other
Last push: 2026-08-26T14:59:19+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2128, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4431, forks 900 (observed 2026-08-28T04:08:49.144261+00:00)

## What it is
An open-source C++ server that implements the Telegram Bot API as an HTTP service, built on TDLib. It can be self-hosted to run bots against a local Bot API endpoint with fewer restrictions than the cloud api.telegram.org.

## Use cases
- self-host the Telegram Bot API server for my bot
- download and upload large files through a local Bot API server
- use a local webhook with HTTP and custom ports
- serve file_path as a local path without downloading files
- run Telegram bots with higher file size limits
- move a bot from cloud Bot API to a local server

## When to choose
- your bot needs file uploads up to 2000 MB or unlimited downloads
- you want local file paths and local webhook support
- you need to self-host the Bot API for performance or data control

## When to avoid
- your bot works fine with the hosted api.telegram.org endpoint
- you cannot obtain your own api_id and api_hash
- you need HTTPS directly without a TLS termination proxy

## Facets
- artifact type: service
- maturity: active
- function: http-server, api-framework, chatbot, webhook
- domain: messaging-platforms, chatbots, apis, self-hosted, developer-tools
- platform: windows, cpp, cross-platform, self-hosted
- tags: telegram, bot-api, local-bot-api-server, tdlib, http-api, linux, macos

## Member repositories
- tdlib/telegram-bot-api (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:49.144261+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:20:54.758089+00:00, confidence not recorded.
  - readme: https://github.com/tdlib/telegram-bot-api (fetched 2026-08-28T04:08:49.144261+00:00, sha fa9c5b7f8099)
  - homepage: https://core.telegram.org/bots (fetched 2026-08-29T09:08:15.458415+00:00, sha dbad8b4d743d)
  - site_page: https://core.telegram.org/bots/features (fetched 2026-08-29T09:08:15.471636+00:00, sha ed7f88c0d051)
  - site_page: https://telegram.org/faq (fetched 2026-08-29T09:08:15.467677+00:00, sha bb96abf682a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
