PHPackages                             yooznet/chatgenius - 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. yooznet/chatgenius

ActiveLibrary[API Development](/categories/api)

yooznet/chatgenius
==================

A PHP library for interacting with the Telegram API.

1.0.0(1y ago)19MITPHP

Since Sep 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/YoozNet/ChatGenius)[ Packagist](https://packagist.org/packages/yooznet/chatgenius)[ Docs](https://github.com/YoozNet/chatgenius)[ RSS](/packages/yooznet-chatgenius/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ChatGenius
==========

[](#chatgenius)

ChatGenius is a PHP package for interacting with the Telegram API. This README provides instructions for installing, configuring, and using the package to send messages, reply to users, and create custom keyboards.

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

[](#installation)

To install the package, use Composer:

```
composer require yooznet/chatgenius:^1.0.0
```

Setup
=====

[](#setup)

First, include the necessary classes in your project:

```
use ChatGenius\TelegramAction;
use App\Classes\user\Handler;
```

Create a new instance of TelegramAction with your bot token:

```
$telegram = new TelegramAction('Your_Token_Here');
$update = new HandleUpdate();
```

Sending Messages
================

[](#sending-messages)

To send a message, use the following code:

```
$telegram->ChatID($update->chat_id)
         ->Text('Welcome to our world!')
         ->sendMessage();
```

Replying to User Messages
=========================

[](#replying-to-user-messages)

To reply to a user's message, first check if there is a message\_id, and then use the Reply class:

```
use ChatGenius\Reply;

$reply = $update->message_id ? new Reply(message_id: $update->message_id) : null;

$telegram->ChatID($update->chat_id)
         ->Reply($reply)
         ->Text('Welcome to our world!')
         ->sendMessage();
```

Creating Buttons
================

[](#creating-buttons)

Inline Keyboard
---------------

[](#inline-keyboard)

To create an inline keyboard with buttons:

```
use ChatGenius\Keyboard;

$keyboard = new Keyboard(
    type: 'InlineKeyboardMarkup',
    inlineKeyboard: [
        [
            ['text' => 'test', 'callback_data' => 'test'],
            ['text' => 'test2', 'callback_data' => 'test2'],
        ],
    ]
);
```

Reply Keyboard
--------------

[](#reply-keyboard)

To create a regular reply keyboard:

```
$keyboard = new Keyboard(
    type: 'ReplyKeyboardMarkup',
    keyboard: [
        ['test']
    ],
    resizeKeyboard: true,
    oneTimeKeyboard: true
);
```

Removing Keyboard
-----------------

[](#removing-keyboard)

To remove the keyboard:

```
$keyboard = new Keyboard(
    type: 'ReplyKeyboardRemove',
    removeKeyboard: true
);
```

Sending Messages with Keyboard
------------------------------

[](#sending-messages-with-keyboard)

To send a message with a custom keyboard:

```
$telegram->ChatID($update->chat_id)
         ->Text('Welcome to our world!')
         ->ReplyMarkup($keyboard)
         ->sendMessage();
```

Contributing Feel free to contribute to this project by submitting issues or pull requests.

License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

Contact For any questions or feedback, please reach out to .

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

613d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31cb368f0e828fa77065ead22ef561ac648ce0796687a13e28bf482f1a7260d1?d=identicon)[shanaqisaeed](/maintainers/shanaqisaeed)

---

Top Contributors

[![Golden-Source](https://avatars.githubusercontent.com/u/50501111?v=4)](https://github.com/Golden-Source "Golden-Source (6 commits)")[![YoozNet](https://avatars.githubusercontent.com/u/161053540?v=4)](https://github.com/YoozNet "YoozNet (4 commits)")

---

Tags

phpapilibrarytelegram

### Embed Badge

![Health badge](/badges/yooznet-chatgenius/health.svg)

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[getjump/vk

Library for work with API Vk.com

20048.5k](/packages/getjump-vk)[telegram-bot-php/core

A PHP library that makes using Telegram Bot API much easier.

60293.1k](/packages/telegram-bot-php-core)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[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)[telegramsdk/botapi

SDK for the Telegram Bot API.

234.0k1](/packages/telegramsdk-botapi)

PHPackages © 2026

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