# reo7sp/tgbot-cpp

C++ library for Telegram bot API

Repository: https://github.com/reo7sp/tgbot-cpp
Canonical: https://ross.abutalabs.com/products/tgbot-cpp
Homepage: http://reo7sp.github.io/tgbot-cpp/
Language: C++
License: MIT
License Family: permissive
Topics: telegram, telegram-api, telegram-bot, bot, cpp
Last push: 2026-08-21T00:48:22+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 4082, "days_push": 13, "days_rel": 21, "gap_med": 6, "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 1187, forks 266 (observed 2026-08-28T04:03:55.289365+00:00)

## What it is
tgbot-cpp is a C++ library wrapping the Telegram Bot API, currently supporting Bot API 10.2. It provides event handlers for commands and messages, long polling, webhook support, and helpers for keyboards, file uploads, and API calls.

## Use cases
- build a telegram bot in c++
- create an echo bot for telegram
- handle telegram bot commands and messages
- set up a telegram webhook server in c++
- send files and keyboards from a telegram bot
- run a telegram bot behind a proxy

## When to choose
- you are writing a Telegram bot in C++ and want a mature, MIT-licensed wrapper
- you need long polling or webhook support with a simple event-based API
- you want CMake/Docker integration for building and deploying your bot

## When to avoid
- you are building bots in Python, Node.js, or another language with richer bot ecosystems
- you need a high-level bot framework with built-in conversation flows rather than a thin API wrapper
- your toolchain cannot target C++20

## Facets
- artifact type: library
- maturity: active
- function: http-client, webhook, chatbot, sdk
- domain: messaging-platforms, apis, developer-tools
- platform: cpp, cross-platform, windows
- tags: telegram-bot-api, telegram, bot-framework, long-polling, cmake, automation, linux, macos

## Member repositories
- reo7sp/tgbot-cpp (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.289365+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-30T06:23:43.829142+00:00, confidence not recorded.
  - readme: https://github.com/reo7sp/tgbot-cpp (fetched 2026-08-28T04:03:55.289365+00:00, sha b4b938447aa9)
  - homepage: http://reo7sp.github.io/tgbot-cpp/ (fetched 2026-08-29T12:30:42.899257+00:00, sha 31bc42457155)
- Data as of 2026-08-30T08:39:29.467469+00:00.
