Skip to content

[BUG] 发送群临时消息报错,无法发送 #706

@NanX3366

Description

@NanX3366

系统版本

win10

QQNT 版本

9.9.27-45758

LLBot 版本

7.8.3

OneBot 客户端

No response

发生了什么?

桌面端和linux都出现发送群临时消息错误,接口返回:发送失败,请先添加对方为好友。

如何复现

调用私聊接口:send_private_msg,发送临时消息

期望的结果?

正常发送临时消息

LLBot 运行日志

2026-02-13 22:37:52.960 [INF] [LLBot] 2026-02-13 22:37:52 | 收到正向 Websocket 消息 { action: 'send_private_msg', echo: '1018727', params: { user_id: '1815199860', message: '♔,欢迎您!加入本群!请遵守群规!\r现在时间: 2026年2月13日22时37分52秒' } }
2026-02-13 22:37:53.166 [INF] [LLBot] 2026-02-13 22:37:53 | 图片信息 { md5HexStr: '0fa54651584d9b09bec2ca789fe705b2', fileSize: '4780', picWidth: 100, picHeight: 100, fileName: '2e97467f-46b2-4f6b-9242-bfeaf526f855.jpg', sourcePath: 'C:\\Users\\Admin\\Documents\\Tencent Files\\1482789142\\nt_qq\\nt_data\\Pic\\2026-02\\Ori\\0fa54651584d9b09bec2ca789fe705b2.jpg', original: true, picType: 1000, picSubType: 0, fileUuid: '', fileSubId: '', thumbFileSize: 0, summary: '', isFlashPic: false }
2026-02-13 22:37:53.184 [INF] [LLBot] 2026-02-13 22:37:53 | 发生错误 DetailedError: invoke failed, wrapperSession.getMsgService().sendMsg, [ '0', { chatType: 1, peerUid: 'u_RlKXX6qMp371N6_DZ64Ifg', guildId: '' }, [ { elementType: 1, elementId: '', textElement: { content: '♔,欢迎您!加入本群!请遵守群规!\r现在时间: 2026年2月13日22时37分52秒', atType: 0, atUid: '', atTinyId: '', atNtUid: '' } } ], Map(1) { 0 => { attrType: 0, attrId: '7606359045294636735', vasMsgInfo: { msgNamePlateInfo: {}, bubbleInfo: {}, avatarPendantInfo: {}, vasFont: {}, iceBreakInfo: {} } } } ], { result: 16, errMsg: '发送失败,请先添加对方为好友' } at <anonymous> (C:\Users\Admin\Desktop\qq框架\LLBot-Desktop-win-x64\bin\src\ntqqapi\ntcall.ts:193:18) at runNextTicks (node:internal/process/task_queues:64:5) at process.processImmediate (node:internal/timers:472:9)

OneBot 客户端运行日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions