Installation
Install the package into a Laravel 13 application:
Laravel discovers the service provider and facade automatically through package discovery.
Requirements
Dependency | Constraint |
|---|---|
PHP |
|
Laravel console/routing/support components |
|
Guzzle |
|
Laravel Prompts |
|
PSR logger |
|
Version v1.19.1 is the final 1.x release for older host applications. Starting with v2.0.0, the package supports only PHP 8.4 and Laravel 13.
Publish Configuration
Publish config/telegram-bot.php:
You can also run the interactive installer:
The installer publishes config, can verify the configured bot through Telegram getMe, and prints copy-ready environment values. It does not write secrets into .env.
Manual Provider Registration
If package discovery is disabled in the host application, register the provider manually in bootstrap/providers.php:
Minimal Environment
Never commit real bot tokens, chat IDs, webhook secrets, private keys, or screenshots that contain them.
Verify Installation
Check that the configured token belongs to the expected bot:
After configuring a channel or explicit destination, send a delivery test:
For a direct explicit chat test:
Install In Non-Laravel PHP Code
The package is designed for Laravel, but the core client can be created directly:
Laravel-only features such as config publishing, facade access, package discovery, events, routes, and Artisan commands require a Laravel application.