PHPackages                             sonko-dmitry/yii2-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. sonko-dmitry/yii2-telegram-bot-api

ActiveYii2-extension[API Development](/categories/api)

sonko-dmitry/yii2-telegram-bot-api
==================================

Telegram bot api component for Yii2

v1.0.0(10y ago)2132.2k↓12.5%5[1 issues](https://github.com/SonkoDmitry/yii2-telegram-bot-api/issues)BSD-3-ClausePHP

Since Jul 31Pushed 10y ago5 watchersCompare

[ Source](https://github.com/SonkoDmitry/yii2-telegram-bot-api)[ Packagist](https://packagist.org/packages/sonko-dmitry/yii2-telegram-bot-api)[ Docs](http://github.com/SonkoDmitry/yii2-telegram-bot-api)[ RSS](/packages/sonko-dmitry-yii2-telegram-bot-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Telegram bot API for Yii2
=========================

[](#telegram-bot-api-for-yii2)

[![Packagist](https://camo.githubusercontent.com/42128abcb90fd70529f6504002dab992903ec1c3ef93899cad781073a4a9e4b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736f6e6b6f2d646d697472792f796969322d74656c656772616d2d626f742d6170692e737667)](https://github.com/SonkoDmitry/yii2-telegram-bot-api/blob/master/LICENSE.md)[![Dependency Status](https://camo.githubusercontent.com/ec5137cc573bd966a70099e819f0f3e8a5b00f77726438eb001ca78c61298b9a/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535626235393430363533373632303031373030316133322f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55bb59406537620017001a32)[![Packagist](https://camo.githubusercontent.com/4fd88f0a065dd66f1dec6633616f0429b019fe32c0f87eff3bee0e812331daa4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6e6b6f2d646d697472792f796969322d74656c656772616d2d626f742d6170692e737667)](https://packagist.org/packages/sonko-dmitry/yii2-telegram-bot-api)[![Packagist](https://camo.githubusercontent.com/b0b0d43537f4c42e197f4075f908a3dd75b7dc294c7cff68a8cc4084b8b1bc47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6e6b6f2d646d697472792f796969322d74656c656772616d2d626f742d6170692e737667)](https://packagist.org/packages/sonko-dmitry/yii2-telegram-bot-api)

This extension is the way to integrate [telegram-bot/api](https://packagist.org/packages/telegram-bot/api) wrapper with your Yii2 application.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
$ php composer.phar require sonko-dmitry/yii2-telegram-bot-api:*

```

or add

```
"sonko-dmitry/yii2-telegram-bot-api": "*"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

1. Add the component configuration in your *global* `main.php` config file:

```
'components' => [
    'bot' => [
        'class' => 'SonkoDmitry\Yii\TelegramBot\Component',
        'apiToken' => 'YOUR_BOT_API_TOKEN',
    ],
],
```

1. Now you can use component

```
\Yii::$app->bot->sendMessage(1234567, 'Hello world!');
```

Where "1234567" receiver telegram id or chat id.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3944d ago

### Community

Maintainers

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

---

Top Contributors

[![SonkoDmitry](https://avatars.githubusercontent.com/u/665862?v=4)](https://github.com/SonkoDmitry "SonkoDmitry (5 commits)")

---

Tags

apiyii2yiibottelegram

### Embed Badge

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

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

###  Alternatives

[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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