cyanray / mirai-cpp

本项目为 mirai-api-http 的 C++ 封装,方便使用 C++ 开发基于 mirai-api-http 插件。
GNU Affero General Public License v3.0
148 stars 38 forks source link

请问能给一个json/xml发送的example吗 #81

Closed MoonShadowIllusion closed 3 years ago

MoonShadowIllusion commented 3 years ago

如题,我成功发送了一个json,但是客户端没有显示

cyanray commented 3 years ago

参考:

https://github.com/cyanray/mirai-cpp/blob/master/examples/RichMessage.cpp

json 格式的消息有可能是 Json 类型消息也有可能是 App 类型消息,类型不正确会不显示。

此外内容不正确(时效性参数过期)也可能导致不显示。