
->keyboard(Keyboard::make()->buttons([
Button::make('Delete')->action('delete')->param('id', '42'),
Button::make('open')->url('https://test.it'),
]))->send();
`
Installation
You can install the package via composer:
bash
`
composer require defstudio/telegraph
`
Publish and launch required migrations:
bash
`
php artisan vendor:publish --tag="telegraph-migrations"
`
bash
`
php artisan migrate
`
Optionally, you can publish the config file with:
bash
`
php artisan vendor:publish --tag="telegraph-config"
Telegraph
Usage
After a new bot is created and added to a chat/group/channel (as described in our documentation),
the facade can be used to easily send messages and interact with it:
`
php
`
Telegraph::message('this is great')->send();
`
An extensive documentation is available at
https://def-studio.github.io/telegraph
Testing
bash
``
composer test