mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
docs: todo #819
This commit is contained in:
@@ -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) },
|
||||
|
Reference in New Issue
Block a user