wearesho-team/telegram-message-delivery

3.0.0 2023-07-03 15:27 UTC

This package is auto-updated.

Last update: 2024-09-03 18:02:21 UTC


README

codecov Build & Test wearesho-team/telegram-message-delivery 实现 Delivery\ServiceInterface

兼容性:在 PHP 7.4,PHP 8.1 上测试过

安装

composer require wearesho-team/telegram-message-delivery:^2.0.0

配置

用法

<?php

use Wearesho\Delivery;

/** @var \TgBotApi\BotApiBase\ApiClient $apiClient */
/** @var Delivery\Telegram\ConfigInterface $config */
$botApi = new Delivery\Telegram\BotApi(
    $config, 
    $apiClient, 
    new \TgBotApi\BotApiBase\BotApiNormalizer()
);
$service = new Delivery\Telegram\Service($botApi);

$service->send(new Delivery\Message('message content', 'chat id'));

贡献者

许可证

MIT