PHP MIT

telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots

D

defstudio

Dernière activité 10 sept. 2026
defstudio/telegraph

822

étoiles

142

forks

7

issues ouvertes

apibotlaravelphpsdktelegramtelegram-bot

Ce README est souvent en anglais.

Pest Laravel Expectations

Latest Version on Packagist Tests Code Style Static Analysis Total Downloads License Twitter Follow


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.

Projets similaires

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

PHPbotbot-frameworkbotkit
Iirazasyed
3,3 k étoiles676

🤖 Telegram Bot API PHP SDK 4.x. Create Telegram Bots with PHP Easily! [WIP]

PHPbotchatbotchatbot-telegram
Ttelegram-bot-sdk
336 étoiles41

Easy way to create Telegram bots in PHP

PHPapibotphp
Wwestacks
307 étoiles49