Skip to content

[BUG] forward_friend_single_msg 等 API未响应有效数据 #774

Description

@Foolllll-J

系统版本

Ubuntu 22.04.4 LTS

QQNT 版本

3.2.18-36497

LLBot 版本

7.12.14

OneBot 客户端

No response

发生了什么?

调用 forward_friend_single_msgforward_group_single_msg 等 API 时,响应体不包含 message_id 字段:forward_friend_single_msg 响应: None。

当前代码逻辑:

ret = await api.call_action("forward_friend_single_msg", user_id=self_id, message_id=source_message_id)
relay_msg_id = ret.get("message_id", "") or ret.get("data", {}).get("message_id", "")

由于响应中没有 message_idrelay_msg_id 始终为空,导致:

  • 无法追踪转发后的消息 ID
  • 依赖 message_id 的功能如撤回(delete_msg)无法工作

如何复现

  1. 调用 forward_friend_single_msgforward_group_single_msg
  2. 检查响应体中是否存在 message_id 字段

期望的结果?

期望响应体中包含 message_id 字段,格式与 send_group_msg / send_private_msg 等其他消息发送接口一致:

{
  "status": "ok",
  "retcode": 0,
  "data": { "message_id": 12345 },
  "message": "",
  "wording": ""
}

LLBot 运行日志

OneBot 客户端运行日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions