Skip to content

get_forward_msg

获取合并转发消息的节点内容,可使用 message_id 或简写字段 id

传入框架消息事件中的 message_id 时,会自动使用消息缓存中的真实发送者和合并转发资源 ID;也可以直接传入 send_group_forward_msg 返回的 res_id

js
const result = await api.get_forward_msg({
  self_id: 123456789,
  message_id: '合并转发消息的 message_id 或 res_id'
})

参数

参数类型必填说明
self_idnumber在线 Bot QQ 号
message_idnumber | string框架消息 ID 或合并转发资源 ID;兼容别名 id
sender_uinnumber直接传资源 ID 时可指定原始发送者 QQ;通常无需填写

返回值:

json
{
  "messages": [
    {
      "type": "node",
      "data": {
        "user_id": 123456789,
        "nickname": "发送者昵称",
        "content": [{ "type": "text", "data": { "text": "内容" } }],
        "time": 1787600000
      }
    }
  ]
}

萌卡 NT · 连接想法,也连接你我。