PHPackages                             tobya/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. tobya/telegraph

ActiveLibrary[API Development](/categories/api)

tobya/telegraph
===============

A laravel facade to interact with Telegram Bots

v1.2(1y ago)112MITPHPPHP ^8.1

Since May 1Pushed 1y agoCompare

[ Source](https://github.com/tobya/telegraph)[ Packagist](https://packagist.org/packages/tobya/telegraph)[ Docs](https://github.com/defstudio/telegraph)[ Fund](https://paypal.me/bdmstore)[ GitHub Sponsors](https://github.com/defstudio)[ RSS](/packages/tobya-telegraph/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (20)Versions (5)Used By (0)

NOT USED ANY LONGER
-------------------

[](#not-used-any-longer)

NOW USING defstudio/telegraph again
===================================

[](#now-using-defstudiotelegraph-again)

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/80f96737429c875d3db01849ad351fc3c7f75b8d30bf1f31d9ca1c5962101e87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656673747564696f2f74656c6567726170682e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/telegraph)[![Tests](https://camo.githubusercontent.com/1deb05d0fb0be686f93b0f8e5042344e1e0e87b4469348afa672030d074e4566/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656673747564696f2f74656c6567726170682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d74657374732663616368655365636f6e64733d33363030266c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141414277414141416343414d414141424630792b6d414141426956424d564555414141442f69507639795033586d2b6a2f6d502f2f7766566a36374a653662502f682f70567836703631373564353757517963662b69506e2f695072736e657a417264332b742f7170764e4a64364c502f6a5070753672762f6c50722f6b5070633537542f7276746335374e7036726a336f506c3337634c2f74666e2f77763964366272582f2f4c2f672f72596e2b6e2f677672576d2b6469364c582b6a5072736b6647577a4d707436626c6e3462646435374a6b364c575379636a2b76507175774e566f36726465366250376e7676596e75703931622f2b7666762f6c76746335374f71764e544673392f2f742f746435374c39742f722f69507064364c506170656a2f6f76703236627879363776396c666c64364c4a72344c6a777376622f7876332f6a7633397a76317436627547356354447265483569766c6335724a7936373656346378623537442f792f6835304d4f79344f4355786356613737582f69507065364c502f6a502b7075394c38742f2f2f7476755179636641724e7870364c7a41726431353172372f692f396e3462622f6a2f39653672542f69667237696672736b764c596e7568693837746738626c673762662f76762f2f6c502b77784e746a3962332f71762f2f6f502f2b69767a2f6c2f7238696672796e2f66766c505466705044656f66444b74756a48744f5758314e462f3473654333635238327346753763426f354c694d77504d724141414157485253546c4d412f577638464149432f644d452f576a2b337445472f507637393847316f48526a53306b314c4273574467734a2f7633362b66547938657a6e342b4c683239584e7a4d7a4c79734c41774c53777236366f704a71616b592b4e69344a37656e643062476c7059313158553034384b69636d49523866697a6c2b767741414156644a524546554b4d39747a325658416c4551674f4642425552706b453637753775374531594659516c31536276726c7a7444694c7673732b66632f6643656d584d76414568684b71553735395031724c6f7855445579456839665048307a37414c69567245592b53534e74784e533275706f75597637684f4c313931614b56735a48555467626e51505167446b7134637448646f516d54576d573457467a6c56554456704e4b58663266577057625a497755712f68636d6a5747596e536131705a5a6a456f6f6d72456456416973443743583647456234307271544f4478436a32314f6a444f766a5256386c326a68756442446368672f46556244495a4349547a775179483661392b32414d44626d3947666c74466e786741647451575567514a6c345651713337755063536e7366595a7a61763645773138665134665559504d37516e34755369496479783573614a36542b2f332b354b536c7473686963774932557066414b452f616f415254766e6e374b4d594d646c41557957525379484e324a65553432486c43693454737a5448636d756a33694d566450354a7a6f7941574e7a693654335a47724d46436c694b334241715253432f42322b3649787659594e634f2b324e7066762b79466931304c66425541414141415355564f524b35435949493d)](https://github.com/defstudio/telegraph/actions?query=workflow%3Arun-tests+branch%3Amain)[![Code Style](https://camo.githubusercontent.com/093e1c067cbfdf8db727f6c12c2190a299e5e171864d59c1a271ebc0a8e5d402/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656673747564696f2f74656c6567726170682f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c652663616368655365636f6e64733d33363030)](https://github.com/defstudio/telegraph/actions?query=workflow%3Alint+branch%3Amain)[![Static Analysis](https://camo.githubusercontent.com/d4905c2fa88f776c9097849906a65238293fb27e1da7bd1f2be5ea16070d0a85/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656673747564696f2f74656c6567726170682f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e2663616368655365636f6e64733d33363030)](https://github.com/defstudio/telegraph/actions?query=workflow%3Aphpstan+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/cbddcfbb83d5e83acb9e2d33e2f83f76a06f50e30394e61e67a7f641686d7dcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656673747564696f2f74656c6567726170682e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/telegraph)[![License](https://camo.githubusercontent.com/da031f9eaa01d8f5eecd01614323e130a609d73f133e77235813c55089670474/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64656673747564696f2f74656c6567726170683f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/telegraph)[![Twitter Follow](https://camo.githubusercontent.com/693066b709807898103e87dd7be499e1ad0e773de86f7dc3037a98dbb7159db4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f466162696f49766f6e613f6c6162656c3d466f6c6c6f77267374796c653d736f6369616c)](https://twitter.com/FabioIvona?ref_src=twsrc%5Etfw)

---

**Telegraph** is a Laravel package for fluently interacting with Telegram Bots made by [def:studio](https://twitter.com/FabioIvona)

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

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

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

Usage &amp; Documentation
-------------------------

[](#usage--documentation)

After a new bot is created and added to a chat/group/channel (as described [in our documentation](https://docs.defstudio.it/telegraph/v1/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. [Follow Us](https://twitter.com/FabioIvona) on Twitter for more updates about this package.

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/defstudio)
- [def:studio team](https://github.com/defstudio)
- [Andrea Marco Sartori](https://github.com/cerbero90) for his cool ideas
- [Alberto Pieripolli](https://github.com/trippo) Pest badge
- [Joris Drenth](https://github.com/jorisdrenth) Docs fix and upgrade
- [All Contributors](../../contributors)

Translators
-----------

[](#translators)

- [Tievo](https://github.com/Tievodj) Spanish
- [Andrey Helldar](https://github.com/andrey-helldar) Russian
- [Joris Drenth](https://github.com/jorisdrenth) Dutch
- [Moayed Alhagy](https://github.com/moayedalhagy) Arabic
- [Rafael](https://github.com/rjmo) Portuguese

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.1% 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 ~72 days

Total

3

Last Release

594d ago

### Community

Maintainers

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

---

Top Contributors

[![fabio-ivona](https://avatars.githubusercontent.com/u/8792274?v=4)](https://github.com/fabio-ivona "fabio-ivona (874 commits)")[![MarioGattolla](https://avatars.githubusercontent.com/u/94918437?v=4)](https://github.com/MarioGattolla "MarioGattolla (101 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (25 commits)")[![YSRoot](https://avatars.githubusercontent.com/u/11317245?v=4)](https://github.com/YSRoot "YSRoot (17 commits)")[![ah-rahimi](https://avatars.githubusercontent.com/u/87445571?v=4)](https://github.com/ah-rahimi "ah-rahimi (17 commits)")[![jorisdrenth](https://avatars.githubusercontent.com/u/10384146?v=4)](https://github.com/jorisdrenth "jorisdrenth (12 commits)")[![ivankuraev](https://avatars.githubusercontent.com/u/3224144?v=4)](https://github.com/ivankuraev "ivankuraev (11 commits)")[![faissaloux](https://avatars.githubusercontent.com/u/60013703?v=4)](https://github.com/faissaloux "faissaloux (11 commits)")[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (9 commits)")[![nicola-posa](https://avatars.githubusercontent.com/u/80521158?v=4)](https://github.com/nicola-posa "nicola-posa (8 commits)")[![adevade](https://avatars.githubusercontent.com/u/1066486?v=4)](https://github.com/adevade "adevade (8 commits)")[![siarheipashkevich](https://avatars.githubusercontent.com/u/7753600?v=4)](https://github.com/siarheipashkevich "siarheipashkevich (7 commits)")[![pou](https://avatars.githubusercontent.com/u/1508526?v=4)](https://github.com/pou "pou (7 commits)")[![JohannBaptistKrimhilde](https://avatars.githubusercontent.com/u/35680667?v=4)](https://github.com/JohannBaptistKrimhilde "JohannBaptistKrimhilde (6 commits)")[![rzkhrv](https://avatars.githubusercontent.com/u/85114856?v=4)](https://github.com/rzkhrv "rzkhrv (5 commits)")[![varemel](https://avatars.githubusercontent.com/u/84812777?v=4)](https://github.com/varemel "varemel (5 commits)")[![j1sul](https://avatars.githubusercontent.com/u/121624400?v=4)](https://github.com/j1sul "j1sul (5 commits)")[![gausoft](https://avatars.githubusercontent.com/u/26385667?v=4)](https://github.com/gausoft "gausoft (4 commits)")[![SiebeVE](https://avatars.githubusercontent.com/u/14889418?v=4)](https://github.com/SiebeVE "SiebeVE (4 commits)")[![naimsolong](https://avatars.githubusercontent.com/u/12205192?v=4)](https://github.com/naimsolong "naimsolong (3 commits)")

---

Tags

laraveltelegraphdefstudio

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

813290.9k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[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)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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