PHPackages                             devrabie/php-telegram-bot-plus - 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. devrabie/php-telegram-bot-plus

ActiveLibrary[API Development](/categories/api)

devrabie/php-telegram-bot-plus
==============================

A community-driven and updated fork of the popular php-telegram-bot/core library, with support for the latest Telegram Bot API features.

v1.2.0(2mo ago)7500↓50%1[1 PRs](https://github.com/devrabie/php-telegram-bot-plus/pulls)MITPHPPHP ^8.1

Since Jul 3Pushed 2mo agoCompare

[ Source](https://github.com/devrabie/php-telegram-bot-plus)[ Packagist](https://packagist.org/packages/devrabie/php-telegram-bot-plus)[ Docs](https://github.com/devrabie/php-telegram-bot-plus)[ RSS](/packages/devrabie-php-telegram-bot-plus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (28)Used By (0)

php-telegram-bot-plus
=====================

[](#php-telegram-bot-plus)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bfad78e820153d7c14ba4256bc4030e131828ffe30ebf52e447d37c782b8519e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657672616269652f7068702d74656c656772616d2d626f742d706c75732e737667)](https://packagist.org/packages/devrabie/php-telegram-bot-plus)[![Software License](https://camo.githubusercontent.com/80c7d332403b6609983afbfc8149f5d614bf6515f7e881997a6e3e5f2566ace3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64657672616269652f7068702d74656c656772616d2d626f742d706c7573)](LICENSE)[![Issues](https://camo.githubusercontent.com/d93d7eff94403b18f8ad6b9aaaa359c8d2dcf2bfd04c5f04f374c47b16ecda62/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64657672616269652f7068702d74656c656772616d2d626f742d706c7573)](https://github.com/devrabie/php-telegram-bot-plus/issues)

A community-driven and updated fork of the popular `php-telegram-bot/core` library, with support for the latest Telegram Bot API features.

---

📖 Overview
----------

[](#-overview)

`php-telegram-bot-plus` is an enhanced and actively maintained fork of the great `longman/php-telegram-bot` library. This project was created to continue its development after the original project stalled, ensuring full support for the latest Telegram Bot API features and providing ongoing bug fixes and improvements for the community.

Our goal is to be a drop-in replacement for existing users, while providing powerful new features for new developers.

✨ Why choose `php-telegram-bot-plus`?
-------------------------------------

[](#-why-choose-php-telegram-bot-plus)

- **🚀 Up-to-date:** Full support for the latest versions of the Telegram Bot API.
- **🛠️ Actively Maintained:** Bugs from the original version are actively being fixed.
- **🧩 New Features:** Adding powerful new features that were not previously available.
- **🤝 Community-Driven:** We welcome contributions from developers to make the library better for everyone.
- **🔒 Compatible:** We maintain backward compatibility as much as possible to make upgrading easy.

📦 Installation
--------------

[](#-installation)

```
composer require devrabie/php-telegram-bot-plus
```

🚀 Using the Redis Helper
------------------------

[](#-using-the-redis-helper)

This library provides a simple helper to integrate a Redis client, allowing you to easily use Redis for your custom data persistence needs (e.g., storing user states, settings, caching). The library itself remains stateless.

### 1. Enable Redis

[](#1-enable-redis)

In your main bot file (e.g., `hook.php` or your script that handles updates):

```
