mvs/phbot
Composer 安装命令:
composer require mvs/phbot
包简介
PHP Library for Telegram Bots
README 文档
README
Connect API Telegram
$app = new ApiConnectTelegram([ 'token' => '<SEU TOKEN>' ]);
Use get update Message
try { $request = $app->getUpdates(); } catch (\Exception $exception) { echo $exception->getMessage(); }
Use Send Message
$data = [ 'chat_id' => 0, 'text' => '<SUA MENSAGEM>' ]; try { $request = $app->sendMessage($data); } catch (\Exception $exception) { echo $exception->getMessage(); }
License
A biblioteca Phbot é um software de código aberto licenciado sob a licença MIT license.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-11
