You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
起因是 QQ 开放平台 限制 机器人主动推送消息数量,被动消息无数量限制,而按照目前 OneBot V12 协议规定,OneBot 协议端无法区分 send_message 是主动消息还是被动消息。
关于
origin_event字段我目前的定义如下:origin_event字段存在时则为被动消息,否则为主动消息。PS:此处提到的回复不同于 消息段中定义的回复,在 QQ 开放平台中将 消息段中定义的回复 定义为 消息引用(message_reference)
其中
origin_event定义如下:请求示例:
{ "action": "send_message", "params": { "detail_type": "group", "group_id": "12467", "message": [ { "type": "text", "data": { "text": "我是文字巴拉巴拉巴拉" } } ], "origin_event": { "id": "2452352435", "type": "message", "detail_type": "group", "sub_type": "" } } }All reactions