PHPackages                             maxgorovenko/telegram-bot-api - 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. maxgorovenko/telegram-bot-api

ActiveLibrary[API Development](/categories/api)

maxgorovenko/telegram-bot-api
=============================

A wrapper for Telegram Bot API

046PHP

Since May 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/maxgorovenko/telegram-bot-api)[ Packagist](https://packagist.org/packages/maxgorovenko/telegram-bot-api)[ RSS](/packages/maxgorovenko-telegram-bot-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MGTelegramBotApiBundle
======================

[](#mgtelegrambotapibundle)

A wrapper bundle for [Telegram Bot API](https://core.telegram.org/bots/api) compatible with Symfony framework. Uses JMS\\Serializer for serialization and deserialization objects.

Install
-------

[](#install)

Via Composer

```
$ composer require maxgorovenko/telegram-bot-api-bundle @dev
```

#### For Symfony you have to upgrade your AppKernel and config:

[](#for-symfony-you-have-to-upgrade-your-appkernel-and-config)

```
# app/AppKernel.php
class AppKernel extends Kernel
{

    public function registerBundles()
    {
        $bundles = array(
            // ...
            // register the bundle here
            new \MG\TelegramBotApiBundle\MGTelegramBotApiBundle()
        );
    }
}
```

```
# app/config/config.yml

mg_telegram_bot_api:
    token: xxxxx:yyyyyyyyyyyyyyyyyyyy
```

Usage
-----

[](#usage)

#### Simple

[](#simple)

Look in JMS Serializer creating [manual](http://jmsyst.com/libs/serializer).

```
$botToken = '11111:2222222';
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
$api = new MG\TelegramBotApiBundle\Service\Api($botToken, $serializer);
$updates = $api->getUpdates();
```

#### With symfony

[](#with-symfony)

```
$api = $container->get('mg.telegram_bot_api');
$updates = $api->getUpdates();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b63fa9a812701577dec2077dee05b662ee3328b664d18719e0cc898d88018e4c?d=identicon)[maxgorovenko](/maintainers/maxgorovenko)

---

Top Contributors

[![maxgorovenko](https://avatars.githubusercontent.com/u/530506?v=4)](https://github.com/maxgorovenko "maxgorovenko (9 commits)")

### Embed Badge

![Health badge](/badges/maxgorovenko-telegram-bot-api/health.svg)

```
[![Health](https://phpackages.com/badges/maxgorovenko-telegram-bot-api/health.svg)](https://phpackages.com/packages/maxgorovenko-telegram-bot-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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