优化机器人

This commit is contained in:
kuaifan 2023-02-14 15:45:25 +08:00
parent 2307f36db0
commit e1456b72fb
2 changed files with 6 additions and 2 deletions

View File

@ -324,8 +324,10 @@ class BotReceiveMsgTask extends AbstractTask
Ihttp::ihttp_post($userBot->webhook_url, [
'text' => $pureText,
'token' => User::token($botUser),
'msg_id' => $msg->id,
'dialog_id' => $msg->dialog_id,
'msg_id' => $msg->id,
'msg_uid' => $msg->userid,
'bot_uid' => $botUser->userid,
'version' => Base::getVersion(),
], 10);
}

View File

@ -100,8 +100,10 @@
机器人收到个人对话消息后会将消息POST推送到Webhook地址请求超时为10秒请求参数如下
<span style="color:#84c56a">text</span>: 消息文本
<span style="color:#84c56a">token</span>: 机器人Token
<span style="color:#84c56a">msg_id</span>: 消息ID
<span style="color:#84c56a">dialog_id</span>: 对话ID
<span style="color:#84c56a">msg_id</span>: 消息ID
<span style="color:#84c56a">msg_uid</span>: 消息发送人ID
<span style="color:#84c56a">bot_uid</span>: 机器人ID
<span style="color:#84c56a">version</span>: 系统版本
@elseif ($type === 'notice')
{{$notice}}