defstudio / telegraph
A laravel facade to interact with Telegram Bots
Fund package maintenance!
fabio-ivona
defstudio
paypal.me/bdmstore
Installs: 134 665
Dependents: 3
Suggesters: 0
Security: 0
Stars: 697
Watchers: 10
Forks: 118
Open Issues: 14
Requires
- php: ^8.1
- illuminate/contracts: ^10.0 | ^11.0
- illuminate/http: ^10.0 | ^11.0
- illuminate/support: ^10.0 | ^11.0
- spatie/laravel-package-tools: ^1.12.1
Requires (Dev)
- ext-sqlite3: *
- defstudio/pest-plugin-laravel-expectations: ^v2.1.2
- friendsofphp/php-cs-fixer: ^v3.13.0
- guzzlehttp/guzzle: ^7.5.0
- larastan/larastan: ^1.0.4 | ^2.4.0
- nunomaduro/collision: ^v7.10.0 | ^v8.1.1
- orchestra/testbench: ^8.0 | ^9.0
- pestphp/pest: ^v2.34.2
- pestphp/pest-plugin-laravel: ^v2.3.0
- pestphp/pest-plugin-mock: ^v2.0.0
- phpstan/extension-installer: ^1.2.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-phpunit: ^1.2.2
- spatie/laravel-ray: ^1.31.0
- spatie/pest-plugin-snapshots: ^2.1.0
- spatie/pest-plugin-test-time: ^2.1.0
- spatie/x-ray: dev-main
- dev-main
- v1.55.1
- v1.55.0
- v1.54.0
- v1.53.0
- v1.52.0
- v1.51.0
- v1.50.0
- v1.49.4
- v1.49.3
- v1.49.2
- v1.49.1
- v1.49.0
- v1.48.1
- v1.48.0
- v1.47.0
- v1.46.6
- v1.46.5
- v1.46.4
- v1.46.3
- v1.46.2
- v1.45.2
- v1.45.1
- v1.45.0
- v1.44.4
- v1.44.3
- v1.44.2
- v1.44.1
- v1.44.0
- v1.43.10
- v1.43.9
- v1.43.8
- v1.43.7
- v1.43.6
- v1.43.5
- v1.43.4
- v1.43.3
- v1.43.2
- v1.43.1
- v1.43.0
- v1.42.0
- v1.41.2
- v1.41.1
- v1.41.0
- v1.40.2
- v1.40.1
- v1.40.0
- v1.39.0
- v1.38.7
- v1.38.6
- v1.38.5
- v1.38.4
- v1.38.3
- v1.38.2
- v1.38.1
- v1.38.0
- v1.37.0
- v1.36.0
- v1.35.1
- v1.34.0
- v1.33.2
- v1.33.1
- v1.33.0
- v1.32.0
- v1.31.0
- v1.30.2
- v1.30.1
- v1.30.0
- v1.29.0
- v1.28.0
- v1.27.0
- v1.26.2
- v1.26.1
- v1.26.0
- v1.24.4
- v1.24.3
- v1.24.2
- v1.24.1
- v1.24.0
- v1.23.1
- v1.23.0
- v1.22
- v1.21.4
- v1.21.3
- v1.21.2
- v1.21.1
- v1.21.0
- v1.20.1
- v1.20.0
- v1.19.3
- v1.19.2
- v1.19.1
- v1.19.0
- v1.18.1
- v1.18.0
- v1.17.3
- v1.17.2
- v1.17.1
- v1.17.0
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-payments
- dev-+635
- dev-patch-1
- dev-chat-join-requests-actions
- dev-ArtemYurov/main
- dev-fix-+620
- dev-+260-implement-setMessageReaction-method
This package is auto-updated.
Last update: 2024-11-20 21:28:03 UTC
README
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 (as described in our documentation),
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
- 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
License
The MIT License (MIT). Please see License File for more information.