defstudio/telegraph

A laravel facade to interact with Telegram Bots
403,490 821
Install
composer require defstudio/telegraph
Latest Version:v1.73.0
PHP:^8.2
License:MIT
Last Updated:Sep 30, 2026
Links: GitHub  ·  Packagist
Maintainer: fabio.ivona

Pest Laravel Expectations


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();

Installation

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"

Usage & Documentation

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently. Follow Us on Twitter for more updates about this package.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Translators

License

The MIT License (MIT). Please see License File for more information.

Related Packages

defstudio/filament-searchable-input

A searchable autocomplete input for Filament forms

37,057 34
defstudio/filament-column-length-limiter

Limit Filament columns length showing a tooltip when text exceeds

10,127 12
defstudio/filament-money

An opinionated Filament money fields and columns handler

1,739 2
defstudio/filament-dynamic-actions

Dynamically disable or hide actions when form is dirty

1,745 3
defstudio/laravel-clog-detector

A slow response time detector for Laravel

6,257 0

Version History

Version Released PHP Laravel License
v1.73.0 ^8.2 ^10.0 | ^11.0 | ^12.0 | ^13.0 MIT
v1.72.1 ^8.2 ^10.0 | ^11.0 | ^12.0 | ^13.0 MIT
v1.72.0 ^8.2 ^10.0 | ^11.0 | ^12.0 | ^13.0 MIT
v1.71.1 ^8.2 ^10.0 | ^11.0 | ^12.0 | ^13.0 MIT
v1.71.0 ^8.2 ^10.0 | ^11.0 | ^12.0 | ^13.0 MIT