PHPackages                             crazy-alert/telegram\_objects - 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. crazy-alert/telegram\_objects

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

crazy-alert/telegram\_objects
=============================

Входящий массив Update от телеграм bot api преобразует в классы php

014PHP

Since Apr 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/crazy-alert/telegram_objects)[ Packagist](https://packagist.org/packages/crazy-alert/telegram_objects)[ RSS](/packages/crazy-alert-telegram-objects/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

### Класс telegram\_objects

[](#класс-telegram_objects)

#### Описание

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

Входящий массив Update преобразует в классы php

#### Использование

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

1. С вебхуками:

    ```
    $Update = new Parser\Update(json_decode(file_get_contents('php://input'), TRUE));
    ```
2. С лонгполлингом:

    ```
    $updates = $bot->getUpdate(); // получаёте апдейты удобным для вас способом
     foreach ($updates as $inputUpdate){ // может вернуться массив с Updates, поэтому цикл
         $Update = new Parser\Update($inputUpdate);
    }
    ```

#### Примеры использования

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

```
if($Update->message){
	$chat = $Update->message->chat;
  $message = $Update->message->text;
  $message_id = $Update->message->message_id;
}
```

```
if($Update->callback_query){
	$data = $Update->callback_query->data;
  $chat = $Update->callback_query->message->chat;
	$data_id = $Update->callback_query->message->message_id;
	$callback_id = $Update->callback_query->id;
}
```

```
if($Update->my_chat_member){
  //$Update->my_chat_member->new_chat_member->user is object of User
}
```

#### Установка

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

```
composer require crazy-alert/telegram_objects

```

P.s.
====

[](#ps)

Это моя проба с composer

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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/6184647?v=4)[Crazy Alert](/maintainers/crazy-alert)[@crazy-alert](https://github.com/crazy-alert)

---

Top Contributors

[![crazy-alert](https://avatars.githubusercontent.com/u/6184647?v=4)](https://github.com/crazy-alert "crazy-alert (3 commits)")

### Embed Badge

![Health badge](/badges/crazy-alert-telegram-objects/health.svg)

```
[![Health](https://phpackages.com/badges/crazy-alert-telegram-objects/health.svg)](https://phpackages.com/packages/crazy-alert-telegram-objects)
```

###  Alternatives

[heyday/silverstripe-menumanager

Allows complex menu management to be handled through the CMS when a simple tree structure is not enough.

35314.2k9](/packages/heyday-silverstripe-menumanager)

PHPackages © 2026

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