LagrangeDev / Lagrange.Core

An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core
GNU General Public License v3.0
2.12k stars 262 forks source link

[Bug?]: onebot 自定义合并转发消息显示异常 #481

Closed NoMathExpectation closed 3 months ago

NoMathExpectation commented 3 months ago

请确保您已阅读以上注意事项,并勾选下方的确认框。

Lagrange项目

OneBot

所使用/依赖的Lagrange项目对应的commit

319785cbd92b767e67f0db4e32738e60b9c48145

运行环境

Linux

运行架构

x64

连接方式

HTTP

重现步骤

使用 onebot 实现端(这里用的是simbot)对 lagrange.onebot 直接发送含 onebot 自定义 node 节点的请求,例如: {"message_type":"group","group_id":"*","message":[{"type":"node","data":{"user_id":"*","nickname":"*","content":[{"type":"text","data":{"text":"lo\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nng"}}]}}],"auto_escape":true}

期望的结果是什么?

正确展示合并转发消息

实际的结果是什么?

发送出来的内容为 该消息类型暂不支持查看

简单的复现代码/链接(可选)

No response

Trace 级别日志记录(可选)

info: Lagrange.OneBot.Core.Network.Service.HttpService[2]
      Request(Conn: 9527214b-aa8f-4fcd-96b7-7e4d51777f1c from 172.29.0.3:41332)
info: Lagrange.OneBot.Core.Network.Service.HttpService[3]
      Receive(Conn: 9527214b-aa8f-4fcd-96b7-7e4d51777f1c: {"message_type":"group","group_id":"*","message":[{"type":"node","data":{"user_id":"*","nickname":"*","content":[{"type":"text","data":{"text":"lo\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nng"}}]}}],"auto_escape":true})
info: Lagrange.OneBot.Core.Network.Service.HttpService[3]
      Receive(Conn: 9527214b-aa8f-4fcd-96b7-7e4d51777f1c: {"action":"send_msg","params":{"message_type":"*","group_id":"*","message":[{"type":"node","data":{"user_id":"*","nickname":"*","content":[{"type":"text","data":{"text":"lo\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nng"}}]}}],"auto_escape":true}})
trce: Lagrange.Core.BotContext[0]
      [2024-08-05 08:35:27] [ServiceContext] [DEBUG]: Outgoing SSOFrame: MessageSvc.PbSendMsg
trce: Lagrange.Core.BotContext[0]
      [2024-08-05 08:35:28] [ServiceContext] [DEBUG]: Outgoing SSOFrame: Heartbeat.Alive
trce: Lagrange.Core.BotContext[0]
      [2024-08-05 08:35:28] [ServiceContext] [DEBUG]: Incoming SSOFrame: MessageSvc.PbSendMsg
trce: Lagrange.OneBot.Core.Network.Service.HttpService[4]
      Send(Conn: 9527214b-aa8f-4fcd-96b7-7e4d51777f1c: {"status":"ok","retcode":0,"data":{"message_id":*},"echo":null})

补充说明(可选)

simple-robot/simbot-component-onebot#68

CrackTC commented 3 months ago

Lagrange.OneBot 的合并转发消息要通过扩展api发送

NoMathExpectation commented 3 months ago

Lagrange.OneBot 的合并转发消息要通过扩展api发送

可是我看其他onebot服务端是不需要额外的api的,比如补充里的issue提到的其他服务端

ishkong commented 3 months ago

从go-cqhttp时开始,与合并转发相关的操作一直是单独的api。 且由于发送合并转发的逻辑与发送其它消息有一定的区别,lgr暂时没有兼容的计划。 这并不是一个bug,所以关闭此issue。 你可以选择提交一个feature request来请求开发者支持,或者使用其它服务端.