fix: getfile

This commit is contained in:
手瓜一十雪
2024-08-29 20:14:20 +08:00
parent fc3a8481bc
commit 984f87773f
4 changed files with 12 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ export class FileNapCatOneBotUUID {
msgId: string,
elementId: string
} {
if (!uuid.startsWith('NapCatOneBot-File-')) return undefined;
if (!uuid.startsWith('NapCatOneBot-MsgFile-')) return undefined;
const data = uuid.split('-');
if (data.length !== 6) return undefined;
const [, , chatType, peerUid, msgId, elementId] = data;