Telegram Bot API

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-bot

AIOGram

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 aiogram

pyTelegramBotAPI

A simple but extensible Python implementation of the Telegram Bot API.

★ 8,795 · Latest version 4.37.1

pip install pyTelegramBotAPI

All maintained Python libraries

LibraryDescription★Latest versionLast update
python-telegram-botA popular Python wrapper for the Telegram Bot API ("a wrapper you can't refuse").29,614v22.8
June 12, 2026
November 22, 2026
pyTelegramBotAPIA simple but extensible Python implementation of the Telegram Bot API.8,7954.37.0
September 21, 2026
October 31, 2026
AIOGramA modern, fully asynchronous Python framework for the Telegram Bot API, built on asyncio and aiohttp.5,948v3.33.0
November 19, 2026
November 22, 2026
OrigamiBotA pythonic Telegram Bot API library.86v2.3.6
June 25, 2023
October 23, 2026
TelegrinderA modern Telegram bot framework for Python.70v1.1.3
May 19, 2026
November 19, 2026
ShingramA lightweight Python library for Telegram bots with automatic API method support.8—January 30, 2026
TelekitA declarative, developer-friendly Python library for building Telegram bots.5v2.6.1
November 20, 2026
November 20, 2026
telegram-easyA very simple Python package to send and receive Telegram messages.00.2.0
January 30, 2026
January 30, 2026

Not updated for over a year: telegram-text (September 16, 2024), MicroPython (October 19, 2024), telegram.py (February 28, 2025), pure-teleapi (March 12, 2025)

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 grammy

Telegraf

A modern Telegram bot framework for Node.js.

★ 9,212 · Latest version 4.16.3

npm install telegraf

Node-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-api

All maintained JavaScript libraries

LibraryDescription★Latest versionLast update
Node-Telegram-botA Node.js module to interact with the official Telegram Bot API.9,217v2.4.0
November 9, 2026
November 21, 2026
TelegrafA modern Telegram bot framework for Node.js.9,212v4.16.3
February 29, 2024
November 16, 2026
grammYThe Telegram Bot Framework for JavaScript and TypeScript.3,808v1.46.0
August 26, 2026
November 21, 2026
GramIOA powerful, extensible and type-safe Telegram Bot API framework.305v0.15.3
October 21, 2026
October 21, 2026
puregramA modern Telegram Bot API SDK for Node.js and TypeScript.210@puregram/media-cacher@4.0.0
November 22, 2026
November 9, 2026
typescript-telegram-bot-apiA Telegram Bot API wrapper for Node.js written in TypeScript.52—August 24, 2026
TelegramsjsA library for interacting with the Telegram Bot API.524.15.0
October 3, 2026
October 3, 2026
tg-bot-sdkA comprehensive library with full Telegram Bot API type support.31@effect-ak/tg-bot@1.13.0
November 13, 2026
November 13, 2026
wrappergramA simple, tiny, code-generated Telegram Bot API wrapper for TypeScript/JavaScript with file upload support.9v2.0.0
August 24, 2026
October 27, 2026
ayotblA 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

telebot

A Telegram bot framework for Go.

★ 4,643 · Latest version v4.0.0

go get gopkg.in/telebot.v4

Golang Telegram Bot

A Telegram Bot API framework for Go.

★ 1,893 · Latest version v1.30.0

go get github.com/go-telegram/bot

Telego

A Telegram Bot API library for Go.

★ 1,082 · Latest version v1.13.0

go get github.com/mymmrac/telego

All maintained Go libraries

LibraryDescription★Latest versionLast update
telebotA Telegram bot framework for Go.4,643v4.0.0
November 18, 2026
November 18, 2026
Golang Telegram BotA Telegram Bot API framework for Go.1,893v1.30.0
November 19, 2026
November 19, 2026
TelegoA Telegram Bot API library for Go.1,082v1.13.0
November 12, 2026
November 19, 2026
Golang Telegram Bot libraryAn autogenerated Go wrapper for the Telegram Bot API, inspired by python-telegram-bot.725—November 22, 2026
echotronAn elegant and concurrent Go library for the Telegram Bot API.446—November 10, 2026
go-tgA Go client library for the Telegram Bot API, with batteries for building complex bots included.136v0.18.0
February 9, 2026
November 10, 2026
Telegram Bot API helper for GolangA Telegram Bot API wrapper for Go.52—September 12, 2026
Golang Telegram Bot FrameworkA Telegram bot framework for Go.18v2.5.0
November 22, 2026
November 22, 2026
Telegram Bot API: Go implementationAn implementation of the Telegram Bot API in Go.16—April 15, 2026
goramA zero-dependency Telegram Bot API library for Go.4—June 18, 2026
gogrammyA Telegram bot framework for Go, built as a wrapper over go-telegram/bot.3—October 25, 2026

Not updated for over a year: TG

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-bot

Bot 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-sdk

Nutgram

A PHP framework for Telegram bots "that doesn't drive you nuts".

★ 759 · Latest version 4.52.0

composer require nutgram/nutgram

All maintained PHP libraries

LibraryDescription★Latest versionLast update
PHP Telegram BotA PHP Telegram bot library based on the official Telegram Bot API.4,0170.84.0
November 11, 2026
November 18, 2026
Bot API PHP SDKA Telegram Bot API SDK for PHP that supports Laravel out of the box.3,301v3.16.0
March 23, 2026
November 9, 2026
TelegraphA Laravel package for fluently interacting with Telegram bots.822v1.73.0
September 30, 2026
October 15, 2026
NutgramA PHP framework for Telegram bots "that doesn't drive you nuts".7594.52.0
November 20, 2026
November 22, 2026
TeleBotAn easy way to create Telegram bots in PHP, with Laravel support out of the box.3104.11.0
November 10, 2026
November 10, 2026
Telegram Bot API for PHPA PHP library for interacting with the Telegram Bot API.1310.24
November 22, 2026
November 22, 2026
LaraGramA modern PHP framework for building Telegram bots and applications.131v4.4.1
November 10, 2026
November 10, 2026
tgWebValidA PHP library to validate Telegram Login Widget and Mini App users on your website.69v4.2.5
March 26, 2026
March 26, 2026
TelegramBotsApiA PHP SDK for the Telegram Bot API.18v10.5
November 22, 2026
November 22, 2026
TGram PHPA Telegram Bot API SDK for PHP.1v0.2.1
August 27, 2026
September 7, 2026

Not updated for over a year: PHP Telegram Bot Api (July 10, 2025), TuriBot (June 18, 2025), klev-o/telegram-bot-api (January 20, 2025), laragram (September 29, 2025)

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-longpolling

Java API

A Telegram Bot API library for Java.

★ 1,957 · Latest version 10.4.0

Maven/Gradle: com.github.pengrad:java-telegram-bot-api

All maintained Java libraries

LibraryDescription★Latest versionLast update
TelegramBotsA simple-to-use Java library to create Telegram bots.5,553v10.3.0
September 7, 2026
November 10, 2026
Java APIA Telegram Bot API library for Java.1,95710.4.0
November 21, 2026
September 26, 2026
Teleight BotsA lightweight Java library to easily create Telegram bots.57v1.3.0
May 8, 2026
August 3, 2026
TelebofAn easy and modern Java library for the Telegram Bot API.55v2.3.0
November 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

LibraryDescription★Latest versionLast update
Kotlin Telegram BotA wrapper for the Telegram Bot API written in Kotlin.98310.0.0
May 15, 2026
May 15, 2026
TelegramBotAPIA type-safe Kotlin library for working with the Telegram Bot API.444v37.1.0
October 10, 2026
November 19, 2026
Kotlin Telegram BotA Telegram Bot API wrapper with a handy Kotlin DSL.2499.8.0
November 9, 2026
November 22, 2026
Kotlin Telegram BotA Kotlin library for creating scalable and expandable Telegram bot applications.47v1.4.2
June 17, 2026
June 17, 2026
TelegramKittyA type-safe Kotlin Telegram Bot API wrapper with built-in cat pic functionality.205.0.0
July 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.Bot

All maintained .NET libraries

LibraryDescription★Latest versionLast update
Telegram.botA .NET client for the Telegram Bot API.3,654v22.4.4
February 24, 2025
November 9, 2026
Telegram Bot FrameworkA modular, context-based .NET framework with forms, controls, state management, navigation and localization.214v7.1.0
January 8, 2026
November 3, 2026
Telegram.BotAPI for NETA .NET library for the Telegram Bot API that aims to be one of the most complete available.181v10.4
November 10, 2026
November 10, 2026
RxTelegram.BotA C# implementation of the Telegram Bot API that makes updates available using a reactive approach.44v8.2.0
January 4, 2025
November 11, 2026
PRTelegramBotA .NET framework on top of Telegram.Bot with attribute-based command routing, menus, middleware, DI and background tasks.39v1.1.3
November 12, 2026
November 12, 2026
Minimal Telegram BotA .NET framework for Telegram bots with concise syntax inspired by ASP.NET Core Minimal APIs.38—March 2, 2026
cnetA .NET 9 bot toolkit with typed handlers, flood control and retry, sessions and FSM, long polling and webhooks.10v1.7.0
July 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 teloxide

Frankenstein

A Telegram Bot API client for Rust.

★ 379 · Latest version 0.53.0

cargo add frankenstein

All maintained Rust libraries

LibraryDescription★Latest versionLast update
teloxideAn elegant Telegram bots framework for Rust.4,274v0.17.0
July 11, 2025
September 15, 2026
FrankensteinA Telegram Bot API client for Rust.3790.52.1
September 25, 2026
November 14, 2026
carapaxA Telegram Bot API framework for Rust.1330.40.0
September 6, 2026
September 6, 2026
telersAn asynchronous framework for the Telegram Bot API written in Rust.90—November 16, 2026
botapi-rsAn autogenerated Telegram Bot API wrapper for Rust.110.0.2
October 17, 2022
November 10, 2026
rustigramA comprehensive async Rust framework for the Telegram Bot API.8rustigram-v0.12.0
August 16, 2026
August 16, 2026

Not updated for over a year: Ferrisgram (March 19, 2025), tgbotapi (August 7, 2025)

C++

tgbot-cpp is the most widely used C++ library for the Bot API; tgbot and TGBM are smaller alternatives.

All maintained C++ libraries

LibraryDescription★Latest versionLast update
tgbot-cppA C++ library for the Telegram Bot API.1,189v1.14
November 17, 2026
November 17, 2026
tgbotA C++ library for Telegram Bot API 10.4 with generated API types and methods.801.1.11.10.4
November 9, 2026
November 9, 2026
TGBMA C++ library for Telegram bots ("tg bots mother lib").66v1.4.0
November 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-ruby

All maintained Ruby libraries

LibraryDescription★Latest versionLast update
telegram-bot-rubyA Ruby wrapper for the Telegram Bot API.1,426—November 22, 2026
Telegram::BotA Ruby gem for building Telegram bots with optional Rails integration.678v0.12.4
January 19, 2018
April 5, 2026

Not updated for over a year: TelegramWorkflow (July 21, 2023)

Dart

TeleDart is the most starred Dart library, while Televerse is the more recently updated one.

All maintained Dart libraries

LibraryDescription★Latest versionLast update
TeleverseA Dart framework for Telegram bot development.102v3.8.0
November 15, 2026
November 15, 2026

Not updated for over a year: TeleDart (April 6, 2024)

Scala

bot4s.telegram is a strongly-typed wrapper for Scala, and Telegramium is a pure functional implementation.

All maintained Scala libraries

LibraryDescription★Latest versionLast update
bot4s.telegramA simple, extensible, strongly-typed Telegram Bot API wrapper for Scala.432v7.1.0
September 27, 2026
November 18, 2026
F[Tg] - TelegramiumA pure functional Telegram Bot API implementation for Scala.9511.1004.0
November 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

LibraryDescription★Latest versionLast update
telegram-bot-luaA simple yet extensive Lua library for the Telegram Bot API.210v3.7
June 22, 2026
July 22, 2026
tnt-tg-botA Lua/Tarantool library for the Telegram Bot API.9—September 29, 2026

Not updated for over a year: ggram (March 25, 2025)

Clojure

Clojure has two maintained options: clj-tg-bot-api and telegrambot-lib.

All maintained Clojure libraries

LibraryDescription★Latest versionLast update
telegrambot-libA Clojure library implementation of the Telegram Bot API.752.15.0
June 2, 2024
February 22, 2026
Clojure Telegram Bot APIThe 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

LibraryDescription★Latest versionLast update
SwiftA Swift library implementing all Telegram Bot API methods, usable with Vapor, Smoke, Hummingbird and FlyingFox.26910.4.1
November 19, 2026
November 19, 2026
ElixirExGram: a low-level Telegram Bot API client and framework for Elixir.2420.67.0
June 12, 2026
November 20, 2026
GleamTelega: a Gleam library to build Telegram bots.74—November 11, 2026
PascalTGBotMini: a mini Telegram Bot API library for Pascal.38—February 4, 2026
Crystalhamilton: a Telegram Bot API wrapper for Crystal.6v0.5.0
April 30, 2026
October 21, 2026

Not updated for over a year: Haskell (March 7, 2023), OCaml (May 31, 2022), Perl (April 17, 2025)

Sources: the official list of libraries on core.telegram.org; stars, releases and update dates from GitHub as of November 22, 2026. core.telegram.org/bots/samples

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.