dontgiveafish/yellow-plane-sdk

3.0 2024-08-12 20:50 UTC

This package is not auto-updated.

Last update: 2024-09-18 11:22:22 UTC


README

Yellow plane is a telegram bot that is designed to broadcast messages to the different teams.

To install SDK with Composer run this command:

composer require dontgiveafish/yellow-plane-sdk

To broadcast a message use this simple interface:

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

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

References

Yellow plane backend and infrastructure: https://github.com/dontgiveafish/yellow-plane-telegram-bot