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 9y 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 today

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 21% 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

[google/apiclient

Client library for Google APIs

9.8k186.9M875](/packages/google-apiclient)[stripe/stripe-php

Stripe PHP Library

4.0k139.3M411](/packages/stripe-stripe-php)[webonyx/graphql-php

A PHP port of GraphQL reference implementation

4.7k75.4M270](/packages/webonyx-graphql-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k90.6M248](/packages/twilio-sdk)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k52.7M205](/packages/friendsofsymfony-jsrouting-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.3M170](/packages/knplabs-github-api)

PHPackages © 2026

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