rezident/wise-telegram-bot
Composer 安装命令:
composer require rezident/wise-telegram-bot
包简介
README 文档
README
Creating the bot
To create a new bot object, you need a token. This token can be obtained with a special bot - @BotFather. Creating a bot object:
$bot = new \Rezident\WiseTelegramBot\Bot('special token');
Processing updates
The bot can receive the update in two ways: by requesting it itself (using the getUpdates method) or by receiving it as an associative array (using webhooks).
Associative array
For the bot to process the update as an associative array,
it must be passed to the handleUpdate method:
$update = json_decode($body); $bot = new \Rezident\WiseTelegramBot\Bot('special token'); $bot->handleUpdate($update);
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-20