This commit is contained in:
手瓜一十雪
2025-05-07 18:10:58 +08:00
parent 4ef457fe6f
commit e933a95e97

View File

@@ -64,6 +64,7 @@ export class NTQQFileApi {
} }
async getFileUrl(chatType: ChatType, peer: string, fileUUID?: string, file10MMd5?: string | undefined) { async getFileUrl(chatType: ChatType, peer: string, fileUUID?: string, file10MMd5?: string | undefined) {
if (this.core.apis.PacketApi.available) {
try { try {
if (chatType === ChatType.KCHATTYPEGROUP && fileUUID) { if (chatType === ChatType.KCHATTYPEGROUP && fileUUID) {
return this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+peer, fileUUID); return this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+peer, fileUUID);