New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lermal/laravel-telegram-bot

Laravel package for Telegram Bot API interactions with webhook and polling support.
1,008
Install
composer require lermal/laravel-telegram-bot
Latest Version:v1.0.0
PHP:^8.3
Laravel:13
License:MIT
Last Updated:Apr 30, 2026
Links: GitHub  ·  Packagist
Maintainer: lermal

lermal/laravel-telegram-bot

Laravel package for Telegram Bot API with webhook and polling support.

Language: English | Русский

Features

  • Telegram API client with typed methods and raw API calls.
  • Webhook mode with secret validation.
  • Polling mode with retries, backoff, --max-iterations, and --stop-when-empty.
  • Update dispatcher with handler pipeline.
  • Built-in anti-spam for repeated chat commands.
  • Telemetry events for polling and update processing lifecycle.

Quick start

composer require lermal/laravel-telegram-bot
php artisan telegram:install

Then configure handlers in config/telegram.php.

Requirements

  • PHP 8.3+
  • Laravel 13+

Main commands

  • php artisan telegram:webhook:set {url?}
  • php artisan telegram:webhook:info
  • php artisan telegram:webhook:delete {--drop-pending-updates}
  • php artisan telegram:poll {--once} {--max-iterations=} {--stop-when-empty}
  • php artisan telegram:install

Documentation

Detailed setup, architecture notes, examples, and troubleshooting are in wiki: https://github.com/lermal/laravel-telegram-bot/wiki

Support

Tests

composer test

License

MIT

Related Packages

botman/driver-telegram

Telegram driver for BotMan

490,926 94
php-telegram-bot/laravel

Integrates PHP Telegram Bot into Laravel.

10,527 185
micromagicman/laravel-telegram-webapp

Laravel middleware for Telegram WebApp data validation

4,645 26
itorgov/laravel-forge-bot

Laravel Forge chat bot for Telegram messenger.

0 35
black-river/telegram-bot

Create your Telegram Bot in 5 minutes with Laravel

134 18

Version History

Version Released PHP Laravel License
v1.0.0 ^8.3 ^13.0 MIT