mirror of
https://github.com/kuaifan/dootask.git
synced 2026-06-08 00:18:45 +00:00
优化机器人
This commit is contained in:
parent
2307f36db0
commit
e1456b72fb
@ -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);
|
||||
}
|
||||
|
||||
@ -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}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user