PHPackages                             tekook/telegramlibrary - 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. tekook/telegramlibrary

AbandonedArchivedLibrary[API Development](/categories/api)

tekook/telegramlibrary
======================

PHP Library for the new Telegram Bot API

1.0.3(10y ago)177113[2 issues](https://github.com/tekook/TelegramLibrary/issues)MITPHPPHP &gt;=5.4.0

Since Jun 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tekook/TelegramLibrary)[ Packagist](https://packagist.org/packages/tekook/telegramlibrary)[ Docs](https://github.com/tekook/TelegramLibrary)[ RSS](/packages/tekook-telegramlibrary/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHP-TelegramLibrary
===================

[](#php-telegramlibrary)

PHP Library for the new Telegram Bot API

- Event based programming for the [new bot api](https://core.telegram.org/bots/api)
- Closures
- Composer Ready
- Fully OOP
- All Methods and Types available
- Documented

\####Usage##### Initiate the TelegramBotApi object with your token. Register the wanted hook within the event handler Use the central "pushUpdate" Method to start the Handling

\####Example####

```
use Tekook\TelegramLibrary;

$telegram = new TelegramLibrary\TelegramBotApi("");

$eventHandler = $telegram->getEventHandler();
$eventHandler->addHook(TelegramLibrary\Events::TEXT,
        function(\Tekook\TelegramLibrary\Types\Message $message) {
    if ($message->getText() == "A") {
        $message->reply("OK", ["reply_markup" => new TelegramLibrary\Markups\ReplyKeyboardHide()]);
    } else {
        $message->reply("Hello, " . $message->getFrom()->getFirstName() . " please answer A!",
                [
            "reply_markup" => new TelegramLibrary\Markups\ReplyKeyboardMarkup([
                ["A", "B"],
                ["C", "D"],
                ["E", "F"],
                    ])
        ]);
    }
});

$telegram->pushUpdate();

```

\##Author## [Julian Tekook](www.dj-digital.net)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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

Every ~0 days

Total

3

Last Release

3975d ago

### Community

Maintainers

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

---

Top Contributors

[![tekook](https://avatars.githubusercontent.com/u/976407?v=4)](https://github.com/tekook "tekook (14 commits)")

---

Tags

apilibrarybottelegramnew api

### Embed Badge

![Health badge](/badges/tekook-telegramlibrary/health.svg)

```
[![Health](https://phpackages.com/badges/tekook-telegramlibrary/health.svg)](https://phpackages.com/packages/tekook-telegramlibrary)
```

###  Alternatives

[telegramsdk/botapi

SDK for the Telegram Bot API.

234.0k1](/packages/telegramsdk-botapi)[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)

PHPackages © 2026

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