defstudio/telegraph
关于
Telegraph 是一个 Laravel 软件包,可用于流畅地与 Telegram 机器人交互。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
- 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.
探索相关项目
加载中…