LLOneBot / LLOneBot

使你的NTQQ支持OneBot11协议进行QQ机器人开发
https://llonebot.github.io
MIT License
1.46k stars 128 forks source link

是否支持发送多层合并消息 #265

Open ti-e opened 2 weeks ago

ti-e commented 2 weeks ago

系统版本

win11

QQNT 版本

版本: 9.9.11-24568 (64位)

LLOneBot 版本

3.26.7

OneBot 客户端

2.16

发生了什么?

image 在尝试多种JSON数据组合后依然无法发送 合并消息【合并消息【】,合并消息【】】,单层的 合并消息【】可以发送成功

如何复现

QQ两个聊天记录合并转发

期望的结果?

镶嵌式的合并消息 是否支持?

LLOneBot 运行日志

No response

OneBot 客户端运行日志

No response

linyuchen commented 2 weeks ago

不支持直接构造多层合并消息,如果要发送多层合并消息需要在单层中直接引用合并消息的消息id

ti-e commented 2 weeks ago

image

发送合并消息请求数据: {'group_id': 770626076, 'messages': [{'type': 'node', 'data': {'name': '小云儿', 'uin': 1094950020, 'content': [{'data': {'text': '测试'}, 'type': 'text'}]}}, {'type': 'node', 'data': {'name': '小云儿', 'uin': 1094950020, 'content': [{'data': {'id': '7385086735340206481'}, 'type': 'forward'}]}}]}

如此引用是不是我引用的方式不对,不显示多层

linyuchen commented 2 weeks ago

image

发送合并消息请求数据: {'group_id': 770626076, 'messages': [{'type': 'node', 'data': {'name': '小云儿', 'uin': 1094950020, 'content': [{'data': {'text': '测试'}, 'type': 'text'}]}}, {'type': 'node', 'data': {'name': '小云儿', 'uin': 1094950020, 'content': [{'data': {'id': '7385086735340206481'}, 'type': 'forward'}]}}]}

如此引用是不是我引用的方式不对,不显示多层

消息id为短id