fix: arg3 no longer needed for downloadFileForModelId

This commit is contained in:
Wesley F. Young
2024-08-29 21:21:45 +08:00
parent bde6cf2c92
commit 9328e9c987
3 changed files with 5 additions and 4 deletions

View File

@@ -60,11 +60,12 @@ export class GetFileBase extends BaseAction<GetFilePayload, GetFileResponse> {
}
return res;
}
//群文件模式
const contextModelIdFile = FileNapCatOneBotUUID.decodeModelId(payload.file);
if (contextModelIdFile) {
const { peer, modelId } = contextModelIdFile;
const downloadPath = await NTQQFileApi.downloadFileForModelId(peer, modelId,'');
const downloadPath = await NTQQFileApi.downloadFileForModelId(peer, modelId);
const res: GetFileResponse = {
file: downloadPath,
url: downloadPath,