LagrangeDev / Lagrange.Core

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

[Bug?]: 合并转发uin与nickename错误 #313

Closed Chzxxuanzheng closed 6 months ago

Chzxxuanzheng commented 6 months ago

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

Lagrange项目

OneBot

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

5369aaaa4f554c76fb5672ef6975d96c9b52854e

运行环境

Linux

运行架构

x64

连接方式

反向 WebSocket

重现步骤

使用合并转发,发送非bot的nickname和user_id

期望的结果是什么?

打开合并转发后,显示的nickname和头像应该和发送的nickname和user_id相照应

实际的结果是什么?

nickname和头像全都是bot的

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

async def sendMsg(config: T_State, msg):
    if type(msg) == str:
        msg = MessageSegment.text(msg)
    bot: Bot = config['bot']
    event: Event = config['event']
    try:
        #群
        if isinstance(event, GroupMessageEvent):
            await bot.call_api("send_group_msg",group_id = event.group_id,message=msg)
        #私聊
        else:
            await bot.call_api("send_private_msg",user_id=event.user_id,message=msg)
    except NetworkError as ex:
        logger.error(ex.msg)
    except Exception as ex:
        logger.error(ex)

日志记录(可选)

No response

补充说明(可选)

No response

ghost commented 6 months ago

来自腾讯的Bug 没救

snowykami commented 5 months ago

逆天,刚好也遇到这个问题了

qllokirin commented 4 months ago

+1 同样的调用在gocq能正常显示名称和头像,拉格朗的名称是bot的然后头像是默认企鹅

发现私聊如上所示 群聊如楼主所描述