PHPackages                             telegramsdk/botapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. telegramsdk/botapi

ActiveLibrary[API Development](/categories/api)

telegramsdk/botapi
==================

SDK for the Telegram Bot API.

v2.1.17(1y ago)274.5k↓69.1%6[1 issues](https://github.com/TelegramSDK/BotAPI/issues)1MITPHPPHP &gt;=8.0

Since Jun 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/TelegramSDK/BotAPI)[ Packagist](https://packagist.org/packages/telegramsdk/botapi)[ Docs](https://github.com/TelegramSDK/BotAPI)[ Fund](https://www.buymeacoffee.com/sebadev)[ Fund](https://racca.me/donate)[ RSS](/packages/telegramsdk-botapi/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (42)Used By (1)

 [![BotAPI Logo](https://private-user-images.githubusercontent.com/115643607/254301770-7f3b38f3-6a2f-4f7d-a4fe-3c1b28594b50.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI3MDE1MjMsIm5iZiI6MTc4MjcwMTIyMywicGF0aCI6Ii8xMTU2NDM2MDcvMjU0MzAxNzcwLTdmM2IzOGYzLTZhMmYtNGY3ZC1hNGZlLTNjMWIyODU5NGI1MC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2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ssmOFBcE1ruI)

 [![Latest Version on Packagist](https://camo.githubusercontent.com/1837e693be571b37b5e6dd44ebfed7b9f4f8489545526af8b23289b55fb8d427/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c656772616d73646b2f626f746170692e7376673f6c6162656c3d636f6d706f736572266c6f676f3d636f6d706f736572 "Latest Version on Packagist")](https://camo.githubusercontent.com/1837e693be571b37b5e6dd44ebfed7b9f4f8489545526af8b23289b55fb8d427/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c656772616d73646b2f626f746170692e7376673f6c6162656c3d636f6d706f736572266c6f676f3d636f6d706f736572) [![PHP Version](https://camo.githubusercontent.com/1f6ddfe2e7115eac9b69ec9284bcf0f5da63e86b28fbb5b4d2823a31f29ee399/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74656c656772616d73646b2f626f746170692f7068703f6c6f676f3d706870 "PHP Version")](https://camo.githubusercontent.com/1f6ddfe2e7115eac9b69ec9284bcf0f5da63e86b28fbb5b4d2823a31f29ee399/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74656c656772616d73646b2f626f746170692f7068703f6c6f676f3d706870)

🛠 Installation
==============

[](#-installation)

You can install the package via composer:

```
composer require telegramsdk/botapi
```

❔ Usage
=======

[](#-usage)

- Full documentation can be found [here](https://botapi.racca.me).
- Examples can be found [here](https://botapi.racca.me/docs/category/examples).

📝 Testing
=========

[](#-testing)

Run Unit tests:

```
composer test
```

Before running tests make sure you have `runkit7` installed:

```
composer runkit
```

⚖️ License
==========

[](#️-license)

This project is under the [MIT License](https://github.com/TelegramSDK/BotAPI/blob/main/LICENSE).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~35 days

Total

41

Last Release

642d ago

Major Versions

v1.2.3 → v2.0.02023-12-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/35b5fbedefc623a3297b653fafa5137440f81ece4b87732f3bbcdff8d3f48bfa?d=identicon)[SebaOfficial](/maintainers/SebaOfficial)

---

Top Contributors

[![SebaOfficial](https://avatars.githubusercontent.com/u/115643607?v=4)](https://github.com/SebaOfficial "SebaOfficial (61 commits)")

---

Tags

libraryphpsdktelegram-bot-apiapisdklibrarybottelegramTelegramSDK

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/telegramsdk-botapi/health.svg)

```
[![Health](https://phpackages.com/badges/telegramsdk-botapi/health.svg)](https://phpackages.com/packages/telegramsdk-botapi)
```

###  Alternatives

[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

737290.3k8](/packages/nutgram-nutgram)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[kuvardin/telegram-bots-api

SDK for Telegram bots API

166.6k](/packages/kuvardin-telegram-bots-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
