PHPackages                             ospanbekov/telegraph - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ospanbekov/telegraph

ActiveLibrary[API Development](/categories/api)

ospanbekov/telegraph
====================

A laravel facade to interact with Telegram Bots

v1.10.7(4y ago)02MITPHPPHP ^8.0

Since Nov 19Pushed 4y agoCompare

[ Source](https://github.com/ospanbekov/telegraph)[ Packagist](https://packagist.org/packages/ospanbekov/telegraph)[ Docs](https://github.com/defstudio/telegraph)[ GitHub Sponsors](https://github.com/def-studio)[ GitHub Sponsors](https://github.com/fabio-ivona)[ RSS](/packages/ospanbekov-telegraph/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (19)Versions (44)Used By (0)

[![Pest Laravel Expectations](https://camo.githubusercontent.com/f6e62133e639596f7ae10781835014c76d13ef31560c7b4aaa466cb469ce0857/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323054656c6567726170682e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64656673747564696f25324674656c656772617068267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d54656c656772616d2b626f74732b6d6164652b65617379266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d70686f6e652d6f7574676f696e67)](https://camo.githubusercontent.com/f6e62133e639596f7ae10781835014c76d13ef31560c7b4aaa466cb469ce0857/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323054656c6567726170682e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64656673747564696f25324674656c656772617068267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d54656c656772616d2b626f74732b6d6164652b65617379266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d70686f6e652d6f7574676f696e67)

[ ![Latest Version on Packagist](https://camo.githubusercontent.com/56ae8a002da103c621750de4e0cea0da7b74137e68d11b7c36e9f733c4fb5dd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656673747564696f2f74656c6567726170682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/defstudio/telegraph)[ ![Tests](https://camo.githubusercontent.com/a2509d9ba477d9c9bd493b3ce035f3ec010fcafeb9e2a46f56940c998a5cd145/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6465662d73747564696f2f74656c6567726170682f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/def-studio/telegraph/actions?query=workflow%3Arun-tests+branch%3Amain)[ ![Code Style](https://camo.githubusercontent.com/368b27fc3359143b4cef23eb32f77216a4a03be2d3e75f99ec5c3f1812a805e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6465662d73747564696f2f74656c6567726170682f6c696e743f6c6162656c3d636f64652532307374796c65)](https://github.com/def-studio/telegraph/actions?query=workflow%3Alint+branch%3Amain)[ ![Static Analysis](https://camo.githubusercontent.com/3331a0afc5392e62d51da73fde9412414f091f3588d459aa38468663fcd824e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6465662d73747564696f2f74656c6567726170682f7068707374616e3f6c6162656c3d7068707374616e)](https://github.com/def-studio/telegraph/actions?query=workflow%3Aphpstan+branch%3Amain)[ ![Total Downloads](https://camo.githubusercontent.com/8e365389e62085aab423626ee08c06cae29f9bc4bbc2a7b755601a2b871c9c2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656673747564696f2f74656c6567726170682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/defstudio/telegraph)---

**Telegraph** is a Laravel package for fluently interacting 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();
```

Installation
------------

[](#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 file with:

```
php artisan vendor:publish --tag="telegraph-config"
```

Usage
-----

[](#usage)

After a new bot is created and added to a chat/group/channel (as described [in our documentation](https://def-studio.github.io/telegraph/quickstart/new-bot)), 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

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Fabio Ivona](https://github.com/def-studio)
- [Andrea Marco Sartori](https://github.com/cerbero90) for his cool ideas
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 90.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

42

Last Release

1463d ago

Major Versions

v0.0.12 → v1.0.02022-02-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb43cfeb4bc7f67311a53a72cfc24d1ea24b608bdf3677546378ffddb2cff1c0?d=identicon)[askarospanbekov](/maintainers/askarospanbekov)

---

Top Contributors

[![fabio-ivona](https://avatars.githubusercontent.com/u/8792274?v=4)](https://github.com/fabio-ivona "fabio-ivona (286 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![JohannBaptistKrimhilde](https://avatars.githubusercontent.com/u/35680667?v=4)](https://github.com/JohannBaptistKrimhilde "JohannBaptistKrimhilde (6 commits)")[![SiebeVE](https://avatars.githubusercontent.com/u/14889418?v=4)](https://github.com/SiebeVE "SiebeVE (4 commits)")[![gausoft](https://avatars.githubusercontent.com/u/26385667?v=4)](https://github.com/gausoft "gausoft (4 commits)")[![naimsolong](https://avatars.githubusercontent.com/u/12205192?v=4)](https://github.com/naimsolong "naimsolong (3 commits)")[![marcovega](https://avatars.githubusercontent.com/u/1530214?v=4)](https://github.com/marcovega "marcovega (3 commits)")[![ospanbekov](https://avatars.githubusercontent.com/u/31131824?v=4)](https://github.com/ospanbekov "ospanbekov (1 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (1 commits)")

---

Tags

laraveltelegraphdefstudio

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ospanbekov-telegraph/health.svg)

```
[![Health](https://phpackages.com/badges/ospanbekov-telegraph/health.svg)](https://phpackages.com/packages/ospanbekov-telegraph)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

813290.9k3](/packages/defstudio-telegraph)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
