project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.65k stars 345 forks source link

发送群消息 有时候能发送成功,有时候发送不成功 #559

Closed echo-LuGuang closed 2 years ago

echo-LuGuang commented 2 years ago

版本: image

http方法请求接口:/sendGroupMessage 请求内容:

{
    "sessionKey":"vnXzhdaX", //已绑定
    "target":828748275,  //群号
    "messageChain":[
        {
            "type":"Plain",
            "text":"你好"
        }
    ]
}

接口响应:

{
    "code": 0,
    "msg": "success",
    "messageId": -1   //主要是这里 有时候就返回-1,有时候是正数。 但是大部分情况都是-1
}
echo-LuGuang commented 2 years ago

Snipaste_2022-04-23_12-08-52

这是控制台的打印。 发送了那么多内容,实际上只发送成功了几个。

ryoii commented 2 years ago

控制台打出来了就代表提交到core了,如果发不出来多半是网络问题、风控问题或者协议问题

echo-LuGuang commented 2 years ago

控制台打出来了就代表提交到core了,如果发不出来多半是网络问题、风控问题或者协议问题

ok,谢谢