PHPackages                             kprokgb/longman-telegram-bot-api-bundle - 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. kprokgb/longman-telegram-bot-api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

kprokgb/longman-telegram-bot-api-bundle
=======================================

A simple wrapper for longman telegram bot.

023PHP

Since Apr 27Pushed 6y agoCompare

[ Source](https://github.com/KproKGB/LongmanTelegramBotApiBundle)[ Packagist](https://packagist.org/packages/kprokgb/longman-telegram-bot-api-bundle)[ RSS](/packages/kprokgb-longman-telegram-bot-api-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

LongmanTelegramBotApiBundle
===========================

[](#longmantelegrambotapibundle)

This is a fork, the original package is located at [borsaco/TelegramBotApiBundle](https://github.com/borsaco/TelegramBotApiBundle)

A symfony wrapper bundle for [PHP Telegram Bot](https://github.com/php-telegram-bot/core).

Install
-------

[](#install)

Via Composer

```
composer require kprokgb/longman-telegram-bot-api-bundle
```

Configure the bundle
--------------------

[](#configure-the-bundle)

This bundle was designed to just work out of the box. The only thing you have to configure in order to get this bundle up and running is your bot [token](https://core.telegram.org/bots#botfather).

```
# config/packages/telegram.yaml

longman_telegram_bot_api:
    # Proxy (optional) :
    #proxy: 'socks5h://127.0.0.1:5090' # this is example you have to change this
    #async_requests: false

    # Development section:
    development:
        # implement in next version
        # Telegram user_id of developers accounts
        developers_id: [1234567, 87654321]
        # If this mode is enabled, the robot only responds to the developers
        maintenance:
            enable: false
            text: "The robot is being repaired! Please come back later."

    # Bots:
    bots:
        # The bot name
        first:
            # Your bot token: (required)
            token: 123456789:ABCD1234****4321CBA
            without_db: false
            hook_url:
        second:
            # Your bot token: (required)
            token: 123456789:ABCD1234****4321CBA
            without_db: false
            hook_url:

    # The default bot returned when you call getBot()
    default: 'first'
```

Usage
-----

[](#usage)

You can access the bot in the controller with :

```
    use Borsaco\TelegramBotApiBundle\Service\Bot;

    ...

    public function index(Bot $bot)
    {
        $firstBot = $bot->getBot('first');
        $firstBot->getMe();
    }
```

In order to receive updates via a Webhook, You first need to tell your webhook URL to Telegram. You can use setWebhook method to specify a url and receive incoming updates via an outgoing webhook.

Once you set the webhook using the setWebhook method, You can then use the below function to retrieve the updates that are sent to your Webhook URL. The function returns an array of Update objects.

```
    $updateArray = $firstBot()->getWebhookUpdate();
```

Next...
-------

[](#next)

Please refer to [Telegram Bot API Official Document](https://core.telegram.org/bots/api) for getting information about available methods and other informations.

Troubleshooting
---------------

[](#troubleshooting)

If you did all the configurations correctly but still getting errors (Http error 500) even on getMe() method, it might be because of SSL Verification. Please make sure you have up-to-date CA root certificate bundle to be used with cURL.

You can configure you CA root certificate bundle by:

1. Downloading up-to-date cacert.pem file from cURL website and
2. Setting a path to it in your php.ini file, e.g. on Windows:

`curl.cainfo=c:\php\cacert.pem`

You can test your SSL-setup online with this handy webtool on: [SSL Labs](https://www.ssllabs.com/ssltest)

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.6% 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/41271445de319acb934b49cd01567cb9b012f2c3e30e882b3ed8e049afe4bb36?d=identicon)[Kpro](/maintainers/Kpro)

---

Top Contributors

[![seddighi78](https://avatars.githubusercontent.com/u/29895767?v=4)](https://github.com/seddighi78 "seddighi78 (31 commits)")[![nick7chasnyi](https://avatars.githubusercontent.com/u/11742573?v=4)](https://github.com/nick7chasnyi "nick7chasnyi (3 commits)")[![DaWulli](https://avatars.githubusercontent.com/u/8543674?v=4)](https://github.com/DaWulli "DaWulli (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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