PHPackages                             westacks/telebot - 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. westacks/telebot

ActiveLibrary[API Development](/categories/api)

westacks/telebot
================

Easy way to create Telegram-bots in PHP

4.8.10(1w ago)306103.7k↓53.6%493MITPHPPHP ^8.2CI passing

Since Sep 19Pushed 1w ago15 watchersCompare

[ Source](https://github.com/westacks/telebot)[ Packagist](https://packagist.org/packages/westacks/telebot)[ Docs](https://github.com/westacks/telebot)[ Fund](https://send.monobank.ua/jar/6zJ7tLXjUU)[ GitHub Sponsors](https://github.com/punyflash)[ RSS](/packages/westacks-telebot/feed)WikiDiscussions 4.x Synced yesterday

READMEChangelog (10)Dependencies (40)Versions (112)Used By (3)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)

[![Project Logo](./docs/public/logo.svg)](https://github.com/westacks/telebot)

[![Latest Stable Version](https://camo.githubusercontent.com/8d4f5f6e2ebd06d5647a12f5aca3f6a69332d4b9456fe37de4ec8c36dd8e465b/68747470733a2f2f706f7365722e707567782e6f72672f7765737461636b732f74656c65626f742f762f737461626c652e737667)](https://packagist.org/packages/westacks/telebot)[![Total Downloads](https://camo.githubusercontent.com/113f417767257aa9e0beef3fad765838d9a3c1cf5e548f597aa5ff2b49321e25/68747470733a2f2f706f7365722e707567782e6f72672f7765737461636b732f74656c65626f742f642f746f74616c2e737667)](https://packagist.org/packages/westacks/telebot)[![License](https://camo.githubusercontent.com/293baf09cb0724afd9cbfac6e936cc0aba5e102d4fc69e3a8e7306f328a4516c/68747470733a2f2f706f7365722e707567782e6f72672f7765737461636b732f74656c65626f742f6c6963656e73652e737667)](https://packagist.org/packages/westacks/telebot)[![Pest](https://github.com/westacks/telebot/actions/workflows/test.yml/badge.svg)](https://github.com/westacks/telebot/actions/workflows/test.yml)[![](https://camo.githubusercontent.com/9347cfa69976a94cc38837933c54c32519455566cc8caa549a02bf2e9e257191/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467765737461636b7325324674656c65626f742e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2Fwestacks%2Ftelebot?ref=badge_shield)

TeleBot is a PHP library for telegram bots development. Rich Laravel support out of the box. Has an easy, clean, and extendable way to handle telegram Updates.

Documentation
-------------

[](#documentation)

Documentation for the library can be found on the [website](https://westacks.github.io/telebot/).

Features
--------

[](#features)

### Bot Manager

[](#bot-manager)

Work easily with multiple bots using `BotManager`:

```
$manager->getMe(); // Fired by default bot specified in BotManager
$manager->bot('bot2')->getMe(); // Fired by `bot2` specified in BotManager
```

### Object oriented and functional handlers

[](#object-oriented-and-functional-handlers)

```
// Functional handler
$handler = function(TeleBot $bot, Update $update, $next) {
    if ($update->message->text === '/start') {
        return $bot->sendMessage([
            'chat_id' => $update->chat()->id,
            'text' => 'Hello, World!'
        ]);
    }

    return $next();
};

// Object oriented handler
class YourUpdateHandler extends CommandHandler
{
    protected static function aliases(): string
    {
        return ['/start'];
    }

    protected static function description(?string $locale = null)
    {
        return 'Start command';
    }

    public function handle()
    {
        return $this->sendMessage([
            'text' => 'Hello, World!'
        ]);
    }
}
```

### Laravel Support

[](#laravel-support)

Check out [Laravel Adapter](https://github.com/westacks/telebot-laravel) for TeleBot

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Dmytro Morozov](https://github.com/PunyFlash)
- [All Contributors](https://github.com/westacks/telebot/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[![FOSSA Status](https://camo.githubusercontent.com/9dacbaababbdc09c0bec23378502c3c8044c7b4200040f39a90d19665fde1bd3/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467765737461636b7325324674656c65626f742e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fwestacks%2Ftelebot?ref=badge_large)

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance98

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 91.7% 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 ~19 days

Recently: every ~2 days

Total

111

Last Release

13d ago

Major Versions

1.x-dev → 2.0.0-alpha.12022-05-01

2.x-dev → 3.0.02023-08-15

3.4.2 → 4.0.0-alpha.02025-04-12

PHP version history (5 changes)1.0.0PHP ^7.2

1.6.0PHP ^7.2 || ^8.0

2.0.2PHP ^7.4 || ^8.0

2.3.0PHP ^8.0

4.0.0-alpha.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/71cd99bc0b7a316be4984cdcf1767ef49221f93c228e2fa050a90f1d96159277?d=identicon)[PunyFlash](/maintainers/PunyFlash)

---

Top Contributors

[![punyflash](https://avatars.githubusercontent.com/u/14828695?v=4)](https://github.com/punyflash "punyflash (388 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (16 commits)")[![larowka](https://avatars.githubusercontent.com/u/46128719?v=4)](https://github.com/larowka "larowka (5 commits)")[![JhnBer](https://avatars.githubusercontent.com/u/32464352?v=4)](https://github.com/JhnBer "JhnBer (4 commits)")[![higorcriativa3](https://avatars.githubusercontent.com/u/28028891?v=4)](https://github.com/higorcriativa3 "higorcriativa3 (1 commits)")[![kagatan](https://avatars.githubusercontent.com/u/27299810?v=4)](https://github.com/kagatan "kagatan (1 commits)")[![kokamvd](https://avatars.githubusercontent.com/u/5837321?v=4)](https://github.com/kokamvd "kokamvd (1 commits)")[![mikerockett](https://avatars.githubusercontent.com/u/4586280?v=4)](https://github.com/mikerockett "mikerockett (1 commits)")[![RoozmehrKnight](https://avatars.githubusercontent.com/u/84688865?v=4)](https://github.com/RoozmehrKnight "RoozmehrKnight (1 commits)")[![ahurov](https://avatars.githubusercontent.com/u/25090332?v=4)](https://github.com/ahurov "ahurov (1 commits)")[![sharifzadesina](https://avatars.githubusercontent.com/u/205923701?v=4)](https://github.com/sharifzadesina "sharifzadesina (1 commits)")[![DyarWeb](https://avatars.githubusercontent.com/u/67329708?v=4)](https://github.com/DyarWeb "DyarWeb (1 commits)")[![epicuristic](https://avatars.githubusercontent.com/u/76988528?v=4)](https://github.com/epicuristic "epicuristic (1 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

apibotphpsdktelebottelegram

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/westacks-telebot/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M981](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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