PHPackages                             gekkone/telegram-bot-php-core - 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. gekkone/telegram-bot-php-core

ActiveLibrary[API Development](/categories/api)

gekkone/telegram-bot-php-core
=============================

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

v1.0.4(2y ago)019MITPHPPHP &gt;=8.0

Since Aug 25Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (7)Used By (0)

[![logo](logo.png)](logo.png)

 [![Build Status](https://github.com/telegram-bot-php/core/workflows/PHPUnit%20Test/badge.svg)](https://github.com/telegram-bot-php/core/actions) [![Code Quality](https://camo.githubusercontent.com/806fcee95e829ee270b37dd6137030cf06c9a2f67186c3142ea3c4f7abfec3a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74656c656772616d2d626f742d7068702f636f72652f6d61737465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/telegram-bot-php/core/?branch=master) [![Code Intelligence Status](https://camo.githubusercontent.com/a8e621c135595f624c0f2d749df51fde736f13a985841d683e3a6af3d001c557/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656c656772616d2d626f742d7068702f636f72652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/g/telegram-bot-php/core/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/c8c66474a7e78f8e70c1b37f8f04e072a85e043154b0735e74a0d7aeb5b9950a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656c656772616d2d626f742d7068702f636f72652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/telegram-bot-php/core/?branch=master)

 [![Latest Stable Version](https://camo.githubusercontent.com/a758ef4920e9ead97875435b10a6d51ba791e00b3bde3796fddbf6f663acb732/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c656772616d2d626f742d7068702f636f72652e7376673f63616368655365636f6e64733d33363030)](https://packagist.org/packages/telegram-bot-php/core) [![Code Size](https://camo.githubusercontent.com/852e69b8d1115b21233d95da1ae0523a46c3420679f65654c5e988930aa62ec3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f74656c656772616d2d626f742d7068702f636f72653f63616368655365636f6e64733d33363030)](https://packagist.org/packages/telegram-bot-php/core) [![Downloads](https://camo.githubusercontent.com/d7c0a41e8c1be2543a997be85c35271a62c7f6d2eafe4045b00b0672884e6b79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656c656772616d2d626f742d7068702f636f72653f63616368655365636f6e64733d33363030)](https://packagist.org/packages/telegram-bot-php/core) [![License](https://camo.githubusercontent.com/d031efa62997f7e36089fc0d4b5e6af73e5e7a219f5a2c08fdb0943c5217f849/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74656c656772616d2d626f742d7068702f636f72653f63616368655365636f6e64733d33363030)](https://packagist.org/packages/telegram-bot-php/core)

Telegram Bot PHP
================

[](#telegram-bot-php)

This library is a simple and easy to use library for creating [Telegram API Bots](https://telegram.org/blog/bot-revolution), and this library is designed to provide a platform where one can simply write a bot and have interactions in a matter of minutes.

Table of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
    - [Installation](#installation)
    - [Getting started](#getting-started)
- [Webhook](#webhook)
    - [Use self-signed certificate](#use-self-signed-certificate)
    - [Delete webhook](#delete-webhook)
- [Update Handling](#update-handling)
    - [Anonymous plugins and handlers](#anonymous-plugins-and-handlers)
    - [Create a handler for updates](#create-a-handler-for-updates)
    - [Filter incoming updates](#filter-incoming-updates)
- [Plugins](#plugins)
    - [Create plugin for Handler class](#create-plugin-for-handler-class)
    - [Available events and methods](#available-events-and-methods)
- [Supports](#supports)
- [Logging](/docs/01-logging.md)
- [Error Handling](#error-handling)
- [Example bot](https://github.com/telegram-bot-php/example-of-usage)
- [Troubleshooting](#troubleshooting)
- [Code of Conduct](#code-of-conduct)
- [Contributing](#contributing)
- [License](#license)

Introduction
------------

[](#introduction)

This is an official announcement of support, which allows integrators of all sorts to bring automated interactions with the [Telegram Bot API](https://core.telegram.org/bots/api) to their users.

This library features:

- The easiest and simplest way for [update handling](#update-handling)
- Support for all types and methods according to [Telegram Bot API 6.0](https://core.telegram.org/bots/api#available-methods)
- Handling `WebAppData` and data encryption/validation
- Crash handling and error reporting
- The ability to create advanced `Plugins` with their `asynchronous` methods
- The ability to manage Channels from the bot admin interface
- Downloading and uploading large files
- Full support for inline bots
- Inline keyboard support
- And many more...

### Installation

[](#installation)

```
composer require telegram-bot-php/core

```

Click for help with installationInstall Composer
----------------

[](#install-composer)

If the above step didn't work, install composer and try again.

#### Debian / Ubuntu

[](#debian--ubuntu)

```
sudo apt-get install curl php-curl
curl -s https://getcomposer.org/installer | php
php composer.phar install

```

Composer not found? Use this command instead:

```
php composer.phar require "telegram-bot-php/core"

```

#### Windows:

[](#windows)

[Download installer for Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)

### Getting started

[](#getting-started)

```
