PHPackages                             jahanzaibbahadur/laravel-telegram-bot - 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. jahanzaibbahadur/laravel-telegram-bot

ActiveLibrary[API Development](/categories/api)

jahanzaibbahadur/laravel-telegram-bot
=====================================

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

1.1.1(6y ago)04MITPHPPHP ^7.2

Since Apr 18Pushed 5y agoCompare

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

READMEChangelogDependencies (7)Versions (7)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/c2a9cb1b1c777fde50f4e6d93b4cda2528eca637c5e2f8e3a460de0bb799eaf4/68747470733a2f2f7472617669732d63692e6f72672f7068702d74656c656772616d2d626f742f6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-telegram-bot/laravel)[![Code Coverage](https://camo.githubusercontent.com/1359dcece91b0126501458303cecf7591cdaafad4a0f2d578a6365d0f51b3869/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d74656c656772616d2d626f742f6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-telegram-bot/laravel/?b=master)[![Code Quality](https://camo.githubusercontent.com/287bbc633586e1802fdf0be096241fb09baa09aab47583f41d777d82bf235071/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d74656c656772616d2d626f742f6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-telegram-bot/laravel/?b=master)[![Latest Stable Version](https://camo.githubusercontent.com/c2e8bacb1c522e6084d89c141ac7419be6cea0237e9922b8c18aed0dc7b494de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d74656c656772616d2d626f742f6c61726176656c2e737667)](https://packagist.org/packages/php-telegram-bot/laravel)[![Total Downloads](https://camo.githubusercontent.com/8ad19f7edf102074a2ddcd28edd0a6a3e6e121f0966ac8ef6f746570530320e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d74656c656772616d2d626f742f6c61726176656c2e737667)](https://packagist.org/packages/php-telegram-bot/laravel)[![Downloads Month](https://camo.githubusercontent.com/486389b3b35f515cf90f0a5cea91e9a8cd3b6dcc04867e14bdfb6c82d940e307/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7068702d74656c656772616d2d626f742f6c61726176656c2e737667)](https://packagist.org/packages/php-telegram-bot/laravel)[![Minimum PHP Version](https://camo.githubusercontent.com/3e27c4e4af4ba393edf9e82fdb74d07b314aff602339d5451db69151ae64715f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344352e352e392d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/4ba1d184c3f0d1f72ffc67653a2e40cbb5c28234dfb352ebfc6dd4cca4d58725/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068702d74656c656772616d2d626f742f6c61726176656c2e737667)](https://github.com/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 through [Composer](https://getcomposer.org/).

Edit your project's `composer.json` file to require `php-telegram-bot/laravel`

Create *composer.json* file:

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "php-telegram-bot/laravel": "^1.0"
    }
}
```

And run composer update

**Or** run a command in your command line:

```
composer require 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:

```
