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. [API Development](/categories/api)
4. /
5. agtong/yii2-telegram-bot

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

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

Telegram bot for Yii 2

v1.0.0(6y ago)11541MITPHP

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 3w 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 41% 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

2266d 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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sonko-dmitry/yii2-telegram-bot-api

Telegram bot api component for Yii2

2132.5k1](/packages/sonko-dmitry-yii2-telegram-bot-api)[monitorbacklinks/yii2-wordpress

Yii2 component for integration with Wordpress CMS via XML-RPC API

3526.9k](/packages/monitorbacklinks-yii2-wordpress)[baibaratsky/yii2-ga-measurement-protocol

Google Analytics Measurement Protocol for Yii2

13105.7k](/packages/baibaratsky-yii2-ga-measurement-protocol)[airani/yii2-telegram-log

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

1657.2k](/packages/airani-yii2-telegram-log)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

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

PHPackages © 2026

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