PHPackages                             segakgd/telegram\_client - 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. segakgd/telegram\_client

ActiveLibrary[API Development](/categories/api)

segakgd/telegram\_client
========================

A PHP client for using Telegram API

1.0.2(1y ago)019MITPHPPHP &gt;=8.2

Since Jun 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/segakgd/telegram_client)[ Packagist](https://packagist.org/packages/segakgd/telegram_client)[ Docs](https://github.com/segakgd/telegram_client)[ RSS](/packages/segakgd-telegram-client/feed)WikiDiscussions main Synced 1mo ago

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

Telegram report client
======================

[](#telegram-report-client)

A PHP client library for interacting with the Telegram Bot API.

Features
--------

[](#features)

- Send messages
- Send exceptions

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

[](#installation)

Install via Composer:

```
composer require segakgd/telegram_client
```

Usage
-----

[](#usage)

```
    $telegramManager = new TelegramManager();

    $telegramToken = '0000000:0000000000000000000000000';

    $message = $telegramMessageBuilder
        ->addText("Привет, мир!")
        ->newLine()
        ->addIndent()
        ->bold("Это жирный текст")
        ->newLine(2)
        ->italic("Курсивный текст")
        ->newLine()
        ->monospace("Моноширинный текст")
        ->newLine()
        ->addLink("Нажми сюда", "https://example.com")
        ->getMessage();

    $chatId = '0000000';
    $messageDto = $telegramManager->createMessage($chatId, $message);

    $response = $telegramManager->sendMessage(
        message: $messageDto,
        token: $telegramToken,
    );
```

Usage with exceptions
---------------------

[](#usage-with-exceptions)

```
    $telegramManager = new TelegramManager();

    $telegramToken = '0000000:0000000000000000000000000';

    $exception1 = new Exception('1');
    $exception2 = new Exception(message: '2', previous: $exception1);
    $exception3 = new Exception(message: '3', previous: $exception2);
    $exception4 = new Exception(message: '4', previous: $exception3);
    $exception5 = new Exception(message: '5', previous: $exception4);
    $exception6 = new Exception(message: '6', previous: $exception5);

    $message = (new TelegramExceptionManager())->makeReport($exception6);

    $chatId = '0000000';
    $messageDto = $telegramManager->createMessage($chatId, $message);

    $response = $telegramManager->sendMessage(
        message: $messageDto,
        token: $telegramToken,
    );
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance45

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~138 days

Total

3

Last Release

428d ago

### Community

Maintainers

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

---

Top Contributors

[![segakgd](https://avatars.githubusercontent.com/u/123932581?v=4)](https://github.com/segakgd "segakgd (34 commits)")

---

Tags

apiclientwrappertelegram

### Embed Badge

![Health badge](/badges/segakgd-telegram-client/health.svg)

```
[![Health](https://phpackages.com/badges/segakgd-telegram-client/health.svg)](https://phpackages.com/packages/segakgd-telegram-client)
```

###  Alternatives

[swader/diffbot-php-client

A PHP wrapper for using Diffbot's API

5328.5k](/packages/swader-diffbot-php-client)[opensaucesystems/lxd

PHP-based API wrapper for LXD REST API.

305.8k](/packages/opensaucesystems-lxd)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)

PHPackages © 2026

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