fix: getfile

This commit is contained in:
手瓜一十雪 committed 2024-08-29 20:14:20 +08:00
1 parent a598266a6e
commit a2fa085d5f
4 files changed
+12 -17

No files matched your search

+1 -1
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;