Telegraph is a Laravel package for fluently interaction with Telegram Bots
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 file with:
php artisan vendor:publish --tag="telegraph-config"
After a new bot is created and added to a chat/group/channel (as described in our documentation),
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://def-studio.github.io/telegraph
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
- Fabio Ivona
- Andrea Marco Sartori for his cool ideas
- All Contributors
The MIT License (MIT). Please see License File for more information.