PHPackages                             gest/telegest - 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. gest/telegest

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

gest/telegest
=============

Small telegram library

04PHP

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jestsi/telegest)[ Packagist](https://packagist.org/packages/gest/telegest)[ RSS](/packages/gest-telegest/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

gest/telegest
=============

[](#gesttelegest)

📖 Description
-------------

[](#-description)

**gest/telegest** is a small PHP library for interacting with the Telegram Bot API. It is designed to simplify the process of creating and managing Telegram bots, presenting a user-friendly interface for working with the Telegram API.

🚀 Features
----------

[](#-features)

- Sending messages and media files
- Processing incoming messages and commands
- Asynchronous HTTP request support via Guzzle and ReactPHP
- Dependency injection using PHP-DI

⚙️ Installation
---------------

[](#️-installation)

### You can install the library using Composer:

[](#you-can-install-the-library-using-composer)

```
composer require gest/telegest
```

📚 Usage/Examples
----------------

[](#-usageexamples)

### 🤖 Echo bot

[](#-echo-bot)

```
$bot = new TGBot($token);

$bot
    ->getUpdateHandler()
    ->attachCallable(UpdateType::Message, fn($message) => (new TGBotClient)->sendMessage($message))
    ->handleUpdates()
    ->run();
```

### Answer on inline query

[](#answer-on-inline-query)

```
$bot = new TGBot($token);
$bot
    ->getUpdateHandler()
    ->attachCallable(UpdateType::InlineQuery, function ($query) use ($bot) {
        $builder = (new InlineQueryAnswerBuilder($query->id))
            ->addArticleResult('1', 'test', '/delete')
            ->addPhotoResult('2',
                'https://w7.pngwing.com/pngs/140/284/png-transparent-animated-woody-illustation-buzz-lightyear-sheriff-woody-jessie-toy-story-film-toy-story-cartoon-pixar-toy-story-3.png',
                'https://www.pinclipart.com/picdir/big/209-2099521_thumb-up-comments-english-lovers-clipart.png')
            ->addLocationResult('3', 48.90174, 2.27829, 'Париж');
        (new TGBotClient)->sendAnswerInlineQuery($builder);
    })
    ->handleUpdates()
    ->run();
```

🛠️ Stack
--------

[](#️-stack)

**Bible Library:** ReactPHP, Guzzle, PHP-DI [![PHP Version](https://camo.githubusercontent.com/a085b232699145c0ea93f1425e805fa802b0193d74c88de3d834b11bec896e42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e332d626c75652e737667)](https://www.php.net/releases/8_3.php)

[![Guzzle](https://camo.githubusercontent.com/64bd59e4014fa1e56b4e42c73616ae0df6787fb7a48b56e77efe66786502cab0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f67757a7a6c652d253545372e382d677265656e2e737667)](https://github.com/guzzle/guzzle)

[![ReactPHP](https://camo.githubusercontent.com/924aa9846833a3b79a06a90328db36696a1c4d690614ec3965e7e4cd32520cd0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656163747068702d253545302e342e332d6c69676874677265792e737667)](https://reactphp.org/)

[![PHP-DI](https://camo.githubusercontent.com/d5059a6f10137efec8f1528078708e72cc355fb9eae907ed6062c03e8de1f7c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2d64692d253545372e302d6f72616e67652e737667)](https://php-di.org/)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/)

🆘 Support
---------

[](#-support)

---

gest/telegest
=============

[](#gesttelegest-1)

📖 Описание
----------

[](#-описание)

**gest/telegest** - это небольшая PHP-библеотека для взаимодействия с API Telegram Bot. Она предназначена для упрощения процесса создания и управления Telegram-ботами, представляя удобный интерфейс для работы с API Telegram.

🚀 Возможности
-------------

[](#-возможности)

- Отправка сообщений и медиафайлов
- Обработка входящих сообщений и команд
- Поддержка асинхронного HTTP-запроса через Guzzle и ReactPHP
- Внедрение зависимостей с использованием PHP-DI

⚙️ Установка
------------

[](#️-установка)

### Установить библиотеку можно с помощью Composer:

[](#установить-библиотеку-можно-с-помощью-composer)

```
composer require gest/telegest
```

📚 Использование/Примеры
-----------------------

[](#-использованиепримеры)

### 🤖 Бот ретранслятор сообщений

[](#-бот-ретранслятор-сообщений)

```
$bot = new TGBot($token);

$bot
    ->getUpdateHandler()
    ->attachCallable(UpdateType::Message, fn($message) => (new TGBotClient)->sendMessage($message))
    ->handleUpdates()
    ->run();
```

🛠️ Стек
-------

[](#️-стек)

**Библеотека:** ReactPHP, Guzzle, PHP-DI [![PHP Version](https://camo.githubusercontent.com/a085b232699145c0ea93f1425e805fa802b0193d74c88de3d834b11bec896e42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e332d626c75652e737667)](https://www.php.net/releases/8_3.php)

[![Guzzle](https://camo.githubusercontent.com/64bd59e4014fa1e56b4e42c73616ae0df6787fb7a48b56e77efe66786502cab0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f67757a7a6c652d253545372e382d677265656e2e737667)](https://github.com/guzzle/guzzle)

[![ReactPHP](https://camo.githubusercontent.com/924aa9846833a3b79a06a90328db36696a1c4d690614ec3965e7e4cd32520cd0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656163747068702d253545302e342e332d6c69676874677265792e737667)](https://reactphp.org/)

[![PHP-DI](https://camo.githubusercontent.com/d5059a6f10137efec8f1528078708e72cc355fb9eae907ed6062c03e8de1f7c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2d64692d253545372e302d6f72616e67652e737667)](https://php-di.org/)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/)

🆘 Поддержка
-----------

[](#-поддержка)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/109cde3c11ba18a48f0c0812877e08be59890430e217722e5a8002d5bc72cccb?d=identicon)[Gest](/maintainers/Gest)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/gest-telegest/health.svg)

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

###  Alternatives

[crodas/languagedetector

simple library to classify texts

320263.9k](/packages/crodas-languagedetector)[ahand/mobileesp

Since 2008, MobileESP provides web site developers an easy-to-use and lightweight API for detecting whether visitors are using a mobile device, and if so, what kind. The APIs provide simple boolean results ('true' or 'false') for identifying individual device categories (such as iPhone, BlackBerry, Android, and Windows Mobile), device capabilities (e.g., J2ME), and broad classes of devices, such as 'iPhone Tier' (iPhone/Android/Tizen) or 'Tablet Tier.' APIs are available in PHP, JavaScript, Java, C#, Ruby Python, and more.

173518.7k9](/packages/ahand-mobileesp)[ibrahimbougaoua/filament-rating-star

This is my package filament-rating-star

42110.2k1](/packages/ibrahimbougaoua-filament-rating-star)[automattic/maintenance-mode-wp

Shut down your site for a little while and do some maintenance on it!

501.8k](/packages/automattic-maintenance-mode-wp)[twc/maker-bundle

Wrap maker bundle to introduce context option to change destination template

1418.0k](/packages/twc-maker-bundle)

PHPackages © 2026

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