ospanbekov/telegraph
最新稳定版本:v1.10.7
Composer 安装命令:
composer require ospanbekov/telegraph
包简介
A laravel facade to interact with Telegram Bots
README 文档
README
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
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
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://def-studio.github.io/telegraph
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Fabio Ivona
- Andrea Marco Sartori for his cool ideas
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-13