pashkevich-s-d/trainee-telegram-bot-client
最新稳定版本:0.0.2
Composer 安装命令:
composer require pashkevich-s-d/trainee-telegram-bot-client
包简介
Telegram bot client example
README 文档
README
Telegram bot client example
Description
This project can be used as an example of creating packages and installing them using composer.
It can be useful for those who are learning PHP and related technologies, or for those who are teaching students.
Example
Add current package:
composer require pashkevich-s-d/trainee-telegram-bot-client
Then:
use \PashkevichSD\TraineeTelegramBotClient\Service\TelegramBotClient;
use \PashkevichSD\TraineeTelegramBotClient\Model\Request\Message;
$telegramBotClient = new TelegramBotClient('YourTelegramBotToken');
To be able to get updates:
$telegramBotClient->getUpdates();
To be able to send message:
telegramBotClient->sendMessage((new Message())->setChatId($chatId)->setText($message));
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-02-07