From 88b1ee8c31978556611f1f564d732da7ace356a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 23 Feb 2025 17:17:52 +0800 Subject: [PATCH] docs: todo #819 --- src/onebot/api/msg.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index c69f1cd1..c63da53e 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -654,6 +654,19 @@ export class OneBotMsgApi { [OB11MessageDataType.node]: async () => undefined, [OB11MessageDataType.forward]: async ({ data }, context) => { + // let id = data.id.toString(); + // let peer: Peer | undefined = context.peer; + // if (isNumeric(id)) { + // let msgid = ''; + // if (BigInt(data.id) > 2147483647n) { + // peer = MessageUnique.getPeerByMsgId(id)?.Peer; + // msgid = id; + // } else { + // let data = MessageUnique.getMsgIdAndPeerByShortId(parseInt(id)); + // msgid = data?.MsgId ?? ''; + // peer = data?.Peer; + // } + // } const jsonData = ForwardMsgBuilder.fromResId(data.id); return this.ob11ToRawConverters.json({ data: { data: JSON.stringify(jsonData) },