Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

telegraph

> 后端框架
Open source

Telegraph is a Laravel package for fluently interacting with Telegram Bots

817 stars0 likes0 views
WebsiteGitHub

About

Telegraph is a Laravel package for fluently interacting with Telegram Bots


Telegraph is a Laravel package for fluently interacting with Telegram Bots made by def:studio

php
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:

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 and translation file with:

bash
php artisan vendor:publish --tag="telegraph-config"
bash
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:

php
Telegraph::message('this is great')->send();

An extensive documentation is available at

https://docs.defstudio.it/telegraph

Testing

bash
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

  • Fabio Ivona
  • def:studio team
  • Andrea Marco Sartori for his cool ideas
  • Alberto Pieripolli Pest badge
  • Joris Drenth Docs fix and upgrade
  • All Contributors

Translators

  • Tievo Spanish
  • Andrey Helldar Russian
  • Joris Drenth Dutch
  • Moayed Alhagy Arabic
  • Rafael Portuguese
  • Sadegh Barzegar Persian
  • Furkan Akkoc German

License

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

Issues· 7 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPapibotlaravelphp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架