PHPackages                             madmagestelegram/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. madmagestelegram/laravel

ActiveLibrary[API Development](/categories/api)

madmagestelegram/laravel
========================

Telegram bot integration with laravel

0.4.0(3y ago)0107MITPHPPHP &gt;=7.4

Since May 2Pushed 3y agoCompare

[ Source](https://github.com/madmagestelegram/laravel-client)[ Packagist](https://packagist.org/packages/madmagestelegram/laravel)[ RSS](/packages/madmagestelegram-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Telegram + Laravel
==================

[](#telegram--laravel)

Laravel + telegram integration. Based on [telegram bot types](https://github.com/madmagestelegram/Types)

Install
=======

[](#install)

`composer require madmagestelegram/laravel`

Concepts
========

[](#concepts)

### Main concept

[](#main-concept)

The main concept is creating handlers for incoming updates from telegram.

It should implement [abstract handler](https://github.com/madmagestelegram/laravel-client/blob/master/src/Handler/AbstractHandler.php)

### Examples of handlers

[](#examples-of-handlers)

There is one build in [handler for telegram commands](https://github.com/madmagestelegram/laravel-client/blob/master/src/Handler/Command/CommandHandler.php)

### Service provider

[](#service-provider)

To define custom handlers or telegram-command-handler, it necessary to create and register own service provider and extend it from `\MadmagesTelegram\Laravel\HandlerServiceProvider`

```
