PHPackages                             grayhoax/phptelebot - 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. [Framework](/categories/framework)
4. /
5. grayhoax/phptelebot

ActiveFramework[Framework](/categories/framework)

grayhoax/phptelebot
===================

Telegram bot framework written in PHP with full Bot API 9.2 support.

v1.4.25(5mo ago)1285GPL-3.0PHPPHP &gt;=5.4

Since Nov 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/GrayHoax/phptelebot)[ Packagist](https://packagist.org/packages/grayhoax/phptelebot)[ RSS](/packages/grayhoax-phptelebot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (14)Used By (0)

PHPTelebot
==========

[](#phptelebot)

Telegram bot framework written in PHP

**Version 2.0** - Now with full support for Telegram Bot API 9.2 (2025)

Features
--------

[](#features)

- Simple, easy to use.
- Support Long Polling and Webhook.
- Full support for latest Telegram Bot API (v9.2).
- Support for Forums, Business Accounts, Reactions, and more.
- 100+ Telegram Bot API methods available.
- Extensive event handling (40+ event types).

Requirements
------------

[](#requirements)

- [cURL](http://php.net/manual/en/book.curl.php)
- PHP 5.4+
- Telegram Bot API Token - Talk to [@BotFather](https://telegram.me/@BotFather) and generate one.

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

[](#installation)

### Using [Composer](https://getcomposer.org)

[](#using-composer)

To install PHPTelebot with Composer, just add the following to your `composer.json` file:

```
{
    "require": {
        "grayhoax/phptelebot": "*"
    }
}
```

or by running the following command:

```
composer require grayhoax/phptelebot
```

Composer installs autoloader at `./vendor/autoloader.php`. to include the library in your script, add:

```
require_once 'vendor/autoload.php';
```

### Install from source

[](#install-from-source)

Download the PHP library from Github, then include `PHPTelebot.php` in your script:

```
require_once '/path/to/phptelebot/src/PHPTelebot.php';
```

Usage
-----

[](#usage)

### Creating a simple bot

[](#creating-a-simple-bot)

```
