@Anstiya 好的,谢谢
L
Listen-cl 发布的最新帖子
-
RE: eridanus-dep 轻量化的Onebot v11 python sdk
大佬我提个问题,我是新手,刚开始用mirai,我看到你的ws adapter源码中发送好友消息的格式是data = {
"action": "send_private_msg",
"echo": echo,
"params": {
"user_id": user_id,
"message": message.to_dict()
}
}
可是我在文档“https://github.com/project-mirai/mirai-api-http/blob/master/docs/api/API.md#发送好友消息”里面看到的是另一种格式{
"sessionKey":"YourSession",
"target":987654321,
"messageChain":[
{ "type":"Plain", "text":"hello\n" },
{ "type":"Plain", "text":"world" },
{ "type":"Image", "url":"https://i0.hdslb.com/bfs/album/67fc4e6b417d9c68ef98ba71d5e79505bbad97a1.png" }
]
}
而且我按照官方文档的格式发送消息会收到一个code:500,msg为空的响应