定制 rezident/wise-telegram-bot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-20