A laravel facade to interact with Telegram Bots
defstudio/telegraph is a Laravel package for a laravel facade to interact with telegram bots.
It currently has 818 GitHub stars and 356.216 downloads on Packagist (latest version v1.72.0).
Install it with composer require defstudio/telegraph.
Discover more Laravel packages by defstudio
or browse all Laravel packages to compare alternatives.
Last updated

Telegraph is a Laravel package for fluently interacting with Telegram Bots made by def:studio
Telegraph::message('hello world')
->keyboard(Keyboard::make()->buttons([
Button::make('Delete')->action('delete')->param('id', '42'),
Button::make('open')->url('https://test.it'),
]))->send();
You can install the package via composer:
composer require defstudio/telegraph
Publish and launch required migrations:
php artisan vendor:publish --tag="telegraph-migrations"
php artisan migrate
Optionally, you can publish the config and translation file with:
php artisan vendor:publish --tag="telegraph-config"
php artisan vendor:publish --tag="telegraph-translations"
After a new bot is created and added to a chat/group/channel (first-time users can follow the full Build your first Telegram bot with Telegraph tutorial),
the Telegraph facade can be used to easily send messages and interact with it:
Telegraph::message('this is great')->send();
An extensive documentation is available at
https://docs.defstudio.it/telegraph
composer test
Please see CHANGELOG for more information on what has changed recently. Follow Us on Twitter for more updates about this package.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.