fix: getfile
This commit is contained in:
1 parent
a598266a6e
commit
a2fa085d5f
4 files changed
+12
-17
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user