-
nonebot2中我想要解析一段json的cq码,我应该怎么解析他,或者有什么办法获取xml或json格式的数据,我现在被cq码搞得心烦意乱,不知道cq码发明来干什么 |
Beta Was this translation helpful? Give feedback.
Answered by
yanyongyu
Apr 29, 2024
Replies: 2 comments 26 replies
-
在nb里你不应该需要解析cq码,你是在哪里获取的cq码,请给出你的代码与日志 |
Beta Was this translation helpful? Give feedback.
9 replies
-
一般不是构建Message对象吗?或者你的意思是把pydantic的模型转成json?这种用dict或者model_dump方法 |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请参考消息处理文档