don'tgiveafish/yellow-plane-sdk

3.0 2024-08-12 20:50 UTC

This package is not auto-updated.

Last update: 2024-10-02 11:30:48 UTC


README

Yellow plane是一个设计用于向不同团队广播消息的Telegram机器人。

使用Composer安装SDK,请运行以下命令

composer require dontgiveafish/yellow-plane-sdk

使用此简单界面广播消息

use Dontgiveafish\YellowPlane;
use GuzzleHttp\Client as Guzzle;

$plane = new YellowPlane\Client(new Guzzle(), 'http://bot-gateway.org/v1', 'team');
$plane->broadcast('Hello world!');

参考资料

Yellow plane后端和基础设施:https://github.com/dontgiveafish/yellow-plane-telegram-bot