正向ws接收到的message字段中依旧是包含CQ码的,请问这是正常情况吗? #801
Answered
by
Ink-33
LainNetWork
asked this question in
Q&A
-
我在文档这里看到,message字段的说明中的格式参考文档是指向onebot协议中消息段数组的消息格式,message字段应该是数组形式的?(可能是我理解不到位....),但是实际接收到的是包含CQ码的字符串格式,这样处理消息就不是很方便了,请问我是否需要自己实现cq码内容的解析?如果是数组格式的话,解析起来就方便许多了。。 附上一段我接收到的消息: {
"anonymous":null,
"font":0,
"group_id":1145141919,
"message":"[CQ:image,file=83e5de404cb0485ec8d5cfc5b7935959.image,url=http://gchat.qpic.cn/gchatpic_new/1145141919/656874541-2599590927-83E5DE404CB0485EC8D5CFC5B7935959/0?term=3]测试",
"message_id":-2072603059,
"message_seq":1409,
"message_type":"group",
"post_type":"message",
"raw_message":"[CQ:image,file=83e5de404cb0485ec8d5cfc5b7935959.image]测试",
"self_id":1145141919810,
"sender":{
"age":0,
"area":"",
"card":"",
"level":"",
"nickname":"Rein",
"role":"owner",
"sex":"unknown",
"title":"",
"user_id":1145141919810
},
"sub_type":"normal",
"time":1617702579,
"user_id":1145141919810
} |
Beta Was this translation helpful? Give feedback.
Answered by
Ink-33
Apr 6, 2021
Replies: 1 comment 3 replies
-
在配置里面 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wdvxdr1123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在配置里面
post_message_format
改为array