micro-spaceless/telegram-bot
Composer 安装命令:
composer require micro-spaceless/telegram-bot
包简介
Telegram Bot Package for Laravel 7.x
关键字:
README 文档
README
Table of Contents
Installation
Install this package through Composer.
Edit your project's composer.json file to require micro-spaceless/telegram-bot
Create composer.json file:
{
"name": "yourproject/yourproject",
"type": "project",
"require": {
"micro-spaceless/telegram-bot": "^1.0"
}
}
And run composer update
Or run a command in your command line:
composer require micro-spaceless/telegram-bot
Copy the package config and migrations to your project with the publish command:
php artisan vendor:publish --provider="MicroSpaceless\TelegramBot\Providers\BaseServiceProvider"
In Laravel find the providers key in your config/app.php and register the Base Service Provider.
'providers' => [ // ... 'MicroSpaceless\TelegramBot\Providers\BaseServiceProvider', ]
Find the aliases key in your config/app.php and add the Telegram facade alias.
'aliases' => [ // ... 'Telegram' => 'MicroSpaceless\TelegramBot\Telegram', ]
Usage
$telegram = new Telegram(); $telegram->sendMessage('Hi!');
Security
If you discover any security related issues, please email ed.arm.2000@gmail.com instead of using the issue tracker.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-06