Skip to content

Telegram bot api Laravel package

High-performance package for building Telegram bots on Laravel

⚡ High Performance

Uses Go to process webhooks and delivers maximum performance

🎯 Convenient Routing

Simple and intuitive API for creating routes, similar to Laravel

📦 Flexible Configuration

Support for multiple bots, webhook and polling operation modes

🚀 Async Sending

Queue support with priorities and automatic rate limiting

🔄 States

Chat and user state management for creating conversations

🛡️ Middleware

Flexible middleware system for authorization, logging and access control

Terminal window
composer require hybridgram/tgbot-laravel
php artisan vendor:publish --provider="HybridGram\Providers\TelegramServiceProvider"
use HybridGram\Facades\TelegramRouter;
TelegramRouter::onCommand('/start', function(CommandData $data) {
$telegram = app(\HybridGram\Telegram\TelegramBotApi::class);
$telegram->sendMessage($data->chatId, 'Hello! 👋');
});

Explore the documentation to learn more about the package features: