Telegram Bot API libraries
A catalog of community libraries and frameworks for building Telegram bots, grouped by programming language. The list is based on the official Telegram list of libraries, with GitHub stars, releases and update dates as of November 22, 2026: 78 of 95 libraries in 15 programming languages are actively maintained.
How to choose a Telegram bot library
Start with your language and runtime. Asynchronous libraries (for example, built on asyncio in Python or on promises in Node.js) handle many chats concurrently in one process; synchronous libraries are simpler to read and debug and are often enough for small bots.
Decide between a framework and a thin wrapper. Frameworks add routing, middleware, conversation state and keyboards on top of the API; thin wrappers map Bot API methods to functions one-to-one and leave the architecture to you.
Check that the library keeps up with the Bot API. Telegram adds new methods and fields several times a year, so compare the latest release of a library with the most recent Bot API version in the Bot API changelog before relying on new features.
Look at activity, not only popularity: the last update date and recent releases show whether the project is maintained, and stars show how large its community is. Libraries without updates for over a year are listed separately on this page.
You do not strictly need a library: the Bot API is plain HTTPS, and any method can be called with curl or a standard HTTP client, e.g. https://api.telegram.org/bot<token>/getMe. This is handy for scripts, serverless functions and debugging — see how to send messages with the Bot API or try any method in the Bot API Tester.
Python
Python has the largest selection of Telegram bot libraries. python-telegram-bot is the most starred, followed by pyTelegramBotAPI and the fully asynchronous aiogram.
Popular choices
python-telegram-bot
A popular Python wrapper for the Telegram Bot API ("a wrapper you can't refuse").
★ 29,614 · Latest version 22.8
pip install python-telegram-botAIOGram
A modern, fully asynchronous Python framework for the Telegram Bot API, built on asyncio and aiohttp.
★ 5,948 · Latest version 3.33.0
pip install aiogrampyTelegramBotAPI
A simple but extensible Python implementation of the Telegram Bot API.
★ 8,795 · Latest version 4.37.1
pip install pyTelegramBotAPIAll maintained Python libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| python-telegram-bot | A popular Python wrapper for the Telegram Bot API ("a wrapper you can't refuse"). | 29,614 | v22.8June 12, 2026 | November 22, 2026 |
| pyTelegramBotAPI | A simple but extensible Python implementation of the Telegram Bot API. | 8,795 | 4.37.0September 21, 2026 | October 31, 2026 |
| AIOGram | A modern, fully asynchronous Python framework for the Telegram Bot API, built on asyncio and aiohttp. | 5,948 | v3.33.0November 19, 2026 | November 22, 2026 |
| OrigamiBot | A pythonic Telegram Bot API library. | 86 | v2.3.6June 25, 2023 | October 23, 2026 |
| Telegrinder | A modern Telegram bot framework for Python. | 70 | v1.1.3May 19, 2026 | November 19, 2026 |
| Shingram | A lightweight Python library for Telegram bots with automatic API method support. | 8 | — | January 30, 2026 |
| Telekit | A declarative, developer-friendly Python library for building Telegram bots. | 5 | v2.6.1November 20, 2026 | November 20, 2026 |
| telegram-easy | A very simple Python package to send and receive Telegram messages. | 0 | 0.2.0January 30, 2026 | January 30, 2026 |
JavaScript
For Node.js, node-telegram-bot-api and Telegraf are the most starred libraries, and grammY describes itself as "The Telegram Bot Framework". Several libraries, such as GramIO, puregram and typescript-telegram-bot-api, are written for TypeScript or advertise type safety.
Popular choices
grammY
The Telegram Bot Framework for JavaScript and TypeScript.
★ 3,808 · Latest version 1.46.0
npm install grammyTelegraf
A modern Telegram bot framework for Node.js.
★ 9,212 · Latest version 4.16.3
npm install telegrafNode-Telegram-bot
A Node.js module to interact with the official Telegram Bot API.
★ 9,217 · Latest version 2.4.1
npm install node-telegram-bot-apiAll maintained JavaScript libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| Node-Telegram-bot | A Node.js module to interact with the official Telegram Bot API. | 9,217 | v2.4.0November 9, 2026 | November 21, 2026 |
| Telegraf | A modern Telegram bot framework for Node.js. | 9,212 | v4.16.3February 29, 2024 | November 16, 2026 |
| grammY | The Telegram Bot Framework for JavaScript and TypeScript. | 3,808 | v1.46.0August 26, 2026 | November 21, 2026 |
| GramIO | A powerful, extensible and type-safe Telegram Bot API framework. | 305 | v0.15.3October 21, 2026 | October 21, 2026 |
| puregram | A modern Telegram Bot API SDK for Node.js and TypeScript. | 210 | @puregram/media-cacher@4.0.0November 22, 2026 | November 9, 2026 |
| typescript-telegram-bot-api | A Telegram Bot API wrapper for Node.js written in TypeScript. | 52 | — | August 24, 2026 |
| Telegramsjs | A library for interacting with the Telegram Bot API. | 52 | 4.15.0October 3, 2026 | October 3, 2026 |
| tg-bot-sdk | A comprehensive library with full Telegram Bot API type support. | 31 | @effect-ak/tg-bot@1.13.0November 13, 2026 | November 13, 2026 |
| wrappergram | A simple, tiny, code-generated Telegram Bot API wrapper for TypeScript/JavaScript with file upload support. | 9 | v2.0.0August 24, 2026 | October 27, 2026 |
| ayotbl | A friendlier, fully-typed Telegram Bot API library for Node.js. | 4 | — | September 8, 2026 |
Go
The most popular Go option is telebot, followed by go-telegram/bot, Telego and the autogenerated gotgbot.
Popular choices
Golang Telegram Bot
A Telegram Bot API framework for Go.
★ 1,893 · Latest version v1.30.0
go get github.com/go-telegram/botTelego
A Telegram Bot API library for Go.
★ 1,082 · Latest version v1.13.0
go get github.com/mymmrac/telegoAll maintained Go libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| telebot | A Telegram bot framework for Go. | 4,643 | v4.0.0November 18, 2026 | November 18, 2026 |
| Golang Telegram Bot | A Telegram Bot API framework for Go. | 1,893 | v1.30.0November 19, 2026 | November 19, 2026 |
| Telego | A Telegram Bot API library for Go. | 1,082 | v1.13.0November 12, 2026 | November 19, 2026 |
| Golang Telegram Bot library | An autogenerated Go wrapper for the Telegram Bot API, inspired by python-telegram-bot. | 725 | — | November 22, 2026 |
| echotron | An elegant and concurrent Go library for the Telegram Bot API. | 446 | — | November 10, 2026 |
| go-tg | A Go client library for the Telegram Bot API, with batteries for building complex bots included. | 136 | v0.18.0February 9, 2026 | November 10, 2026 |
| Telegram Bot API helper for Golang | A Telegram Bot API wrapper for Go. | 52 | — | September 12, 2026 |
| Golang Telegram Bot Framework | A Telegram bot framework for Go. | 18 | v2.5.0November 22, 2026 | November 22, 2026 |
| Telegram Bot API: Go implementation | An implementation of the Telegram Bot API in Go. | 16 | — | April 15, 2026 |
| goram | A zero-dependency Telegram Bot API library for Go. | 4 | — | June 18, 2026 |
| gogrammy | A Telegram bot framework for Go, built as a wrapper over go-telegram/bot. | 3 | — | October 25, 2026 |
PHP
PHP Telegram Bot (php-telegram-bot/core) and the Telegram Bot API PHP SDK by irazasyed are the most starred PHP libraries; Nutgram is a framework, and Telegraph and TeleBot focus on Laravel integration.
Popular choices
PHP Telegram Bot
A PHP Telegram bot library based on the official Telegram Bot API.
★ 4,017 · Latest version 0.84.0
composer require longman/telegram-botBot API PHP SDK
A Telegram Bot API SDK for PHP that supports Laravel out of the box.
★ 3,301 · Latest version v3.16.0
composer require irazasyed/telegram-bot-sdkNutgram
A PHP framework for Telegram bots "that doesn't drive you nuts".
★ 759 · Latest version 4.52.0
composer require nutgram/nutgramAll maintained PHP libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| PHP Telegram Bot | A PHP Telegram bot library based on the official Telegram Bot API. | 4,017 | 0.84.0November 11, 2026 | November 18, 2026 |
| Bot API PHP SDK | A Telegram Bot API SDK for PHP that supports Laravel out of the box. | 3,301 | v3.16.0March 23, 2026 | November 9, 2026 |
| Telegraph | A Laravel package for fluently interacting with Telegram bots. | 822 | v1.73.0September 30, 2026 | October 15, 2026 |
| Nutgram | A PHP framework for Telegram bots "that doesn't drive you nuts". | 759 | 4.52.0November 20, 2026 | November 22, 2026 |
| TeleBot | An easy way to create Telegram bots in PHP, with Laravel support out of the box. | 310 | 4.11.0November 10, 2026 | November 10, 2026 |
| Telegram Bot API for PHP | A PHP library for interacting with the Telegram Bot API. | 131 | 0.24November 22, 2026 | November 22, 2026 |
| LaraGram | A modern PHP framework for building Telegram bots and applications. | 131 | v4.4.1November 10, 2026 | November 10, 2026 |
| tgWebValid | A PHP library to validate Telegram Login Widget and Mini App users on your website. | 69 | v4.2.5March 26, 2026 | March 26, 2026 |
| TelegramBotsApi | A PHP SDK for the Telegram Bot API. | 18 | v10.5November 22, 2026 | November 22, 2026 |
| TGram PHP | A Telegram Bot API SDK for PHP. | 1 | v0.2.1August 27, 2026 | September 7, 2026 |
Java
TelegramBots by rubenlagus is the most popular Java library, with java-telegram-bot-api by pengrad as the main alternative.
Popular choices
TelegramBots
A simple-to-use Java library to create Telegram bots.
★ 5,553 · Latest version v10.3.0
Maven/Gradle: org.telegram:telegrambots-longpollingJava API
A Telegram Bot API library for Java.
★ 1,957 · Latest version 10.4.0
Maven/Gradle: com.github.pengrad:java-telegram-bot-apiAll maintained Java libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| TelegramBots | A simple-to-use Java library to create Telegram bots. | 5,553 | v10.3.0September 7, 2026 | November 10, 2026 |
| Java API | A Telegram Bot API library for Java. | 1,957 | 10.4.0November 21, 2026 | September 26, 2026 |
| Teleight Bots | A lightweight Java library to easily create Telegram bots. | 57 | v1.3.0May 8, 2026 | August 3, 2026 |
| Telebof | An easy and modern Java library for the Telegram Bot API. | 55 | v2.3.0November 10, 2026 | November 10, 2026 |
Kotlin
Kotlin developers can choose between kotlin-telegram-bot, the type-safe ktgbotapi (TelegramBotAPI) and vendelieu/telegram-bot with a Kotlin DSL.
All maintained Kotlin libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| Kotlin Telegram Bot | A wrapper for the Telegram Bot API written in Kotlin. | 983 | 10.0.0May 15, 2026 | May 15, 2026 |
| TelegramBotAPI | A type-safe Kotlin library for working with the Telegram Bot API. | 444 | v37.1.0October 10, 2026 | November 19, 2026 |
| Kotlin Telegram Bot | A Telegram Bot API wrapper with a handy Kotlin DSL. | 249 | 9.8.0November 9, 2026 | November 22, 2026 |
| Kotlin Telegram Bot | A Kotlin library for creating scalable and expandable Telegram bot applications. | 47 | v1.4.2June 17, 2026 | June 17, 2026 |
| TelegramKitty | A type-safe Kotlin Telegram Bot API wrapper with built-in cat pic functionality. | 20 | 5.0.0July 15, 2026 | July 15, 2026 |
.NET
Telegram.Bot is the standard .NET client for the Bot API; several frameworks, such as PRTelegramBot and Telegram Bot Framework, are built on top of it.
Popular choices
Telegram.bot
A .NET client for the Telegram Bot API.
★ 3,654 · Latest version 22.10.4
dotnet add package Telegram.BotAll maintained .NET libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| Telegram.bot | A .NET client for the Telegram Bot API. | 3,654 | v22.4.4February 24, 2025 | November 9, 2026 |
| Telegram Bot Framework | A modular, context-based .NET framework with forms, controls, state management, navigation and localization. | 214 | v7.1.0January 8, 2026 | November 3, 2026 |
| Telegram.BotAPI for NET | A .NET library for the Telegram Bot API that aims to be one of the most complete available. | 181 | v10.4November 10, 2026 | November 10, 2026 |
| RxTelegram.Bot | A C# implementation of the Telegram Bot API that makes updates available using a reactive approach. | 44 | v8.2.0January 4, 2025 | November 11, 2026 |
| PRTelegramBot | A .NET framework on top of Telegram.Bot with attribute-based command routing, menus, middleware, DI and background tasks. | 39 | v1.1.3November 12, 2026 | November 12, 2026 |
| Minimal Telegram Bot | A .NET framework for Telegram bots with concise syntax inspired by ASP.NET Core Minimal APIs. | 38 | — | March 2, 2026 |
| cnet | A .NET 9 bot toolkit with typed handlers, flood control and retry, sessions and FSM, long polling and webhooks. | 10 | v1.7.0July 9, 2026 | September 24, 2026 |
Rust
teloxide is by far the most popular Rust framework; Frankenstein is a lighter Bot API client, and telers and carapax are other maintained frameworks.
Popular choices
teloxide
An elegant Telegram bots framework for Rust.
★ 4,274 · Latest version 0.17.0
cargo add teloxideFrankenstein
A Telegram Bot API client for Rust.
★ 379 · Latest version 0.53.0
cargo add frankensteinAll maintained Rust libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| teloxide | An elegant Telegram bots framework for Rust. | 4,274 | v0.17.0July 11, 2025 | September 15, 2026 |
| Frankenstein | A Telegram Bot API client for Rust. | 379 | 0.52.1September 25, 2026 | November 14, 2026 |
| carapax | A Telegram Bot API framework for Rust. | 133 | 0.40.0September 6, 2026 | September 6, 2026 |
| telers | An asynchronous framework for the Telegram Bot API written in Rust. | 90 | — | November 16, 2026 |
| botapi-rs | An autogenerated Telegram Bot API wrapper for Rust. | 11 | 0.0.2October 17, 2022 | November 10, 2026 |
| rustigram | A comprehensive async Rust framework for the Telegram Bot API. | 8 | rustigram-v0.12.0August 16, 2026 | August 16, 2026 |
C++
tgbot-cpp is the most widely used C++ library for the Bot API; tgbot and TGBM are smaller alternatives.
All maintained C++ libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| tgbot-cpp | A C++ library for the Telegram Bot API. | 1,189 | v1.14November 17, 2026 | November 17, 2026 |
| tgbot | A C++ library for Telegram Bot API 10.4 with generated API types and methods. | 80 | 1.1.11.10.4November 9, 2026 | November 9, 2026 |
| TGBM | A C++ library for Telegram bots ("tg bots mother lib"). | 66 | v1.4.0November 3, 2026 | November 3, 2026 |
Ruby
telegram-bot-ruby is the most popular Ruby wrapper, and the telegram-bot gem offers optional Rails integration.
Popular choices
telegram-bot-ruby
A Ruby wrapper for the Telegram Bot API.
★ 1,426 · Latest version 2.10.0
gem install telegram-bot-rubyAll maintained Ruby libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| telegram-bot-ruby | A Ruby wrapper for the Telegram Bot API. | 1,426 | — | November 22, 2026 |
| Telegram::Bot | A Ruby gem for building Telegram bots with optional Rails integration. | 678 | v0.12.4January 19, 2018 | April 5, 2026 |
Dart
TeleDart is the most starred Dart library, while Televerse is the more recently updated one.
All maintained Dart libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| Televerse | A Dart framework for Telegram bot development. | 102 | v3.8.0November 15, 2026 | November 15, 2026 |
Scala
bot4s.telegram is a strongly-typed wrapper for Scala, and Telegramium is a pure functional implementation.
All maintained Scala libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| bot4s.telegram | A simple, extensible, strongly-typed Telegram Bot API wrapper for Scala. | 432 | v7.1.0September 27, 2026 | November 18, 2026 |
| F[Tg] - Telegramium | A pure functional Telegram Bot API implementation for Scala. | 95 | 11.1004.0November 19, 2026 | November 21, 2026 |
Lua
telegram-bot-lua is the most popular Lua library; tnt-tg-bot targets Tarantool and ggram can be used in Garry's Mod.
All maintained Lua libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| telegram-bot-lua | A simple yet extensive Lua library for the Telegram Bot API. | 210 | v3.7June 22, 2026 | July 22, 2026 |
| tnt-tg-bot | A Lua/Tarantool library for the Telegram Bot API. | 9 | — | September 29, 2026 |
Clojure
Clojure has two maintained options: clj-tg-bot-api and telegrambot-lib.
All maintained Clojure libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| telegrambot-lib | A Clojure library implementation of the Telegram Bot API. | 75 | 2.15.0June 2, 2024 | February 22, 2026 |
| Clojure Telegram Bot API | The Telegram Bot API spec and a client library for Clojure-based apps. | 72 | — | November 10, 2026 |
Other languages
The official list also includes libraries for Swift, Elixir, Gleam, Pascal, OCaml, Haskell, Perl and Crystal.
All maintained Other languages libraries
| Library | Description | ★ | Latest version | Last update |
|---|---|---|---|---|
| Swift | A Swift library implementing all Telegram Bot API methods, usable with Vapor, Smoke, Hummingbird and FlyingFox. | 269 | 10.4.1November 19, 2026 | November 19, 2026 |
| Elixir | ExGram: a low-level Telegram Bot API client and framework for Elixir. | 242 | 0.67.0June 12, 2026 | November 20, 2026 |
| Gleam | Telega: a Gleam library to build Telegram bots. | 74 | — | November 11, 2026 |
| Pascal | TGBotMini: a mini Telegram Bot API library for Pascal. | 38 | — | February 4, 2026 |
| Crystal | hamilton: a Telegram Bot API wrapper for Crystal. | 6 | v0.5.0April 30, 2026 | October 21, 2026 |
Frequently asked questions
What is the best Python library for Telegram bots?
There is no single best choice. python-telegram-bot is the most starred Python library on GitHub and has extensive documentation; aiogram is a fully asynchronous framework built on asyncio; pyTelegramBotAPI is a simple, extensible library that is easy to start with. All three are actively maintained, so pick the one whose style and documentation suit you.
Which Node.js library should I use for a Telegram bot?
The most popular options are grammY, Telegraf and node-telegram-bot-api. grammY and Telegraf are frameworks with middleware for structuring larger bots; node-telegram-bot-api is a module that maps closely to the Bot API methods. If you write TypeScript, also look at typed libraries such as GramIO and puregram.
Do I need a library to build a Telegram bot?
No. The Bot API is an HTTPS interface: every method is a request to https://api.telegram.org/bot<token>/<method> that returns JSON, so you can call it from any language with a standard HTTP client. Libraries save time on types, file uploads, update handling and keyboards.
Are these libraries official?
No. They are community projects. Telegram collects them in its official list of libraries on core.telegram.org, but does not develop or support them. This page lists all 95 libraries from that list with their GitHub activity as of November 22, 2026.
How do I know if a library supports the latest Bot API version?
Compare the date and notes of the latest library release with the latest Bot API version in the official changelog. Many libraries state the supported Bot API version in their README, release notes or changelog; a recent update date is a good sign but not a guarantee.