PHPackages                             codev-vn/php-telegram-bot-laravel - 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. codev-vn/php-telegram-bot-laravel

ActiveLibrary[API Development](/categories/api)

codev-vn/php-telegram-bot-laravel
=================================

Package to integrate PHP Telegram Bot library in Laravel 8.x

2.0.0(4y ago)010MITPHPPHP ^7.2

Since Jul 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/codev-vn/php-telegram-bot-laravel)[ Packagist](https://packagist.org/packages/codev-vn/php-telegram-bot-laravel)[ Docs](https://github.com/codev-vn/php-telegram-bot-laravel)[ RSS](/packages/codev-vn-php-telegram-bot-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (7)Versions (9)Used By (0)

Telegram Bot Package for Laravel 8.x
====================================

[](#telegram-bot-package-for-laravel-8x)

[![Build Status](https://camo.githubusercontent.com/ed9f8b89fef383f6666c85c3c68113c56ded7bb43dc340795670301bb11b00df/68747470733a2f2f7472617669732d63692e6f72672f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/codev-vn/php-telegram-bot-laravel)[![Code Coverage](https://camo.githubusercontent.com/da6c39a7fb0cf03451a39131f663e85fc13d5b654bfb63d048208a58454a5c1f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/codev-vn/php-telegram-bot-laravel/?b=master)[![Code Quality](https://camo.githubusercontent.com/1a74754da4465b53e3f72efea2cdf1201c73279afcf85570bb9fca2f4b36e7c5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/codev-vn/php-telegram-bot-laravel/?b=master)[![Latest Stable Version](https://camo.githubusercontent.com/7861de2ef0f27a0308749563ff37bda317c40770294216202722ed2c955b2c2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2e737667)](https://packagist.org/packages/codev-vn/php-telegram-bot-laravel)[![Total Downloads](https://camo.githubusercontent.com/7b6a6962fc922ac41b8afa7e25c9626b085fe8fe529fed7af003b00e43752c54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2e737667)](https://packagist.org/packages/codev-vn/php-telegram-bot-laravel)[![Downloads Month](https://camo.githubusercontent.com/d0f4b82235b80d6657d93be937c4f76b13d1d5441b9bf4a5dab725d6979b995e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2e737667)](https://packagist.org/packages/codev-vn/php-telegram-bot-laravel)[![Minimum PHP Version](https://camo.githubusercontent.com/3e27c4e4af4ba393edf9e82fdb74d07b314aff602339d5451db69151ae64715f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344352e352e392d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/0f8c0b1877fdfc0278d8d3306878c8869613e1f707721b879156d809cf11fbf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f6465762d766e2f7068702d74656c656772616d2d626f742d6c61726176656c2e737667)](https://github.com/codev-vn/php-telegram-bot-laravel/LICENSE.md)

This package helps easily integrate [PHP Telegram Bot](https://github.com/php-telegram-bot/core) library in Laravel application.

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

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [TODO](#todo)
- [Troubleshooting](#troubleshooting)
- [Contributing](#contributing)
- [License](#license)
- [Credits](#credits)

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

[](#installation)

Install this package a command in your command line:

```
composer require codev-vn/php-telegram-bot-laravel

```

Copy the package config and migrations to your project with the publish command:

```
php artisan vendor:publish --provider="PhpTelegramBot\Laravel\ServiceProvider"

```

After run migration command

```
php artisan migrate

```

In the config you have to specify Telegram API KEY

Usage
-----

[](#usage)

You can inject `PhpTelegramBot\Laravel\PhpTelegramBotContract` in anywhere and use bot instance

For example:

```
