PHPackages                             agtong/yii2-telegram-bot - 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. agtong/yii2-telegram-bot

ActiveYii2-extension

agtong/yii2-telegram-bot
========================

Telegram bot for Yii 2

v1.0.0(6y ago)11531MITPHP

Since Apr 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/agtong/yii2-telegram-bot)[ Packagist](https://packagist.org/packages/agtong/yii2-telegram-bot)[ Docs](https://github.com/agtong/yii2-telegram-bot)[ RSS](/packages/agtong-yii2-telegram-bot/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

Yii2 Telegram Bot
=================

[](#yii2-telegram-bot)

Yii2 [Telegram](https://telegram.org) bot.

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

[](#installation)

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

Either run

```
composer require agtong/yii2-telegram-bot

```

or add

```
"agtong/yii2-telegram-bot": "*"

```

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

Usage
-----

[](#usage)

Use the below code to send a message.

```
$bot = new TelegramBot(['token' => '123456:abcde');
$bot->sendMessage('123456', 'Hello World!');

```

The `sendMessage` function and it's optional paramters are shown below.

```
sendMessage($chat_id, $text, $parse_mode = null, $disable_web_page_preview = null, $disable_notification = null, $reply_to_message_id = null, $reply_markup = null)

```

Read more about the parameters [here](https://core.telegram.org/bots/api#sendmessage).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

2215d ago

### Community

Maintainers

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

---

Tags

componetstelegram-botyii2yii2yiibottelegramyii2-telegram-bot

### Embed Badge

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

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

###  Alternatives

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

Telegram bot api component for Yii2

2132.2k](/packages/sonko-dmitry-yii2-telegram-bot-api)[airani/yii2-telegram-log

Yii 2.0 telegram log target, send logs to the telegram chats or channels

1655.9k](/packages/airani-yii2-telegram-log)[tuyakhov/yii2-notifications

The extension provides support for sending notifications across a variety of delivery channels, including mail, SMS, Slack etc. Notifications may also be stored in a database so they may be displayed in your web interface.

6735.5k2](/packages/tuyakhov-yii2-notifications)[onmotion/yii2-telegram

Support chat for site based on Telegram bot

526.3k](/packages/onmotion-yii2-telegram)

PHPackages © 2026

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