PHPackages                             radyakaze/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. radyakaze/phptelebot

ActiveFramework[Framework](/categories/framework)

radyakaze/phptelebot
====================

Telegram bot framework written in PHP.

v1.3(9y ago)6769669[2 PRs](https://github.com/radyakaze/phptelebot/pulls)GPL-3.0PHPPHP &gt;=5.4

Since Nov 11Pushed 5y ago9 watchersCompare

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

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

PHPTelebot
==========

[](#phptelebot)

Telegram bot framework written in PHP

Features
--------

[](#features)

- Simple, easy to use.
- Support Long Polling and Webhook.

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": {
        "radyakaze/phptelebot": "*"
    }
}
```

or by running the following command:

```
composer require radyakaze/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)

```
