PHPackages                             top-tl/toptl-php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. top-tl/toptl-php-telegram-bot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

top-tl/toptl-php-telegram-bot
=============================

longman/telegram-bot plugin for TOP.TL — autopost bot stats &amp; check votes.

v0.1.0(3mo ago)00MITPHP &gt;=8.1

Since Apr 22Compare

[ Source](https://github.com/top-tl/php-telegram-bot)[ Packagist](https://packagist.org/packages/top-tl/toptl-php-telegram-bot)[ Docs](https://top.tl)[ RSS](/packages/top-tl-toptl-php-telegram-bot/feed)WikiDiscussions Synced 3w ago

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

toptl-php-telegram-bot
======================

[](#toptl-php-telegram-bot)

[PHP Telegram Bot](https://github.com/php-telegram-bot/core) plugin for [TOP.TL](https://top.tl) — automatically post bot stats and check user votes.

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

[](#installation)

```
composer require top-tl/toptl-php-telegram-bot
```

Usage
-----

[](#usage)

```
use TopTL\Client as TopTLClient;
use TopTL\PhpTelegramBot\TopTLPlugin;

$client = new TopTLClient('your-toptl-token');
$plugin = new TopTLPlugin($client, 'my_bot');

// In your bot's update handling loop:
foreach ($updates as $update) {
    $plugin->handleUpdate($update);
    // ... your command handling ...
}

// Post stats (call periodically, e.g. via cron):
$plugin->postStats();

// Check if a user voted:
if ($plugin->hasVoted($userId)) {
    // User has voted
}
```

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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

94d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14023814?v=4)[Dramex](/maintainers/Dramex)[@Dramex](https://github.com/Dramex)

---

Tags

pluginbottelegramtop.tllongman

### Embed Badge

![Health badge](/badges/top-tl-toptl-php-telegram-bot/health.svg)

```
[![Health](https://phpackages.com/badges/top-tl-toptl-php-telegram-bot/health.svg)](https://phpackages.com/packages/top-tl-toptl-php-telegram-bot)
```

###  Alternatives

[php-telegram-bot/telegram-bot-manager

PHP Telegram Bot Manager

22115.3k](/packages/php-telegram-bot-telegram-bot-manager)[onmotion/yii2-telegram

Support chat for site based on Telegram bot

526.4k](/packages/onmotion-yii2-telegram)[php-telegram-bot/inline-keyboard-pagination

PHP Telegram Bot InlineKeyboard Pagination

299.8k1](/packages/php-telegram-bot-inline-keyboard-pagination)

PHPackages © 2026

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