Download the PHP package madmagestelegram/laravel without Composer
On this page you can find all versions of the php package madmagestelegram/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download madmagestelegram/laravel
More information about madmagestelegram/laravel
Files in madmagestelegram/laravel
Package laravel
Short Description Telegram bot integration with laravel
License MIT
Informations about the package laravel
Telegram + Laravel
Laravel + telegram integration. Based on telegram bot types
Install
composer require madmagestelegram/laravel
Concepts
Main concept
The main concept is creating handlers for incoming updates from telegram.
It should implement abstract handler
Examples of handlers
There is one build in handler for telegram commands
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
Command handler
The command handler built for handling telegram commands i.e. /start for example.
All commands should implement AbstractCommand
and should be defined in \MadmagesTelegram\Laravel\HandlerServiceProvider::$telegramCommands
of own service provider
and register it
Laravel commands
madmagestelegram:registerWebhook
- register webhook in telegram. It makes all handlers to work
All versions of laravel with dependencies
madmagestelegram/client Version *
illuminate/support Version ^6 || ^7 || ^8 || ^9 || ^10
illuminate/http Version ^6 || ^7 || ^8 || ^9 || ^10