From c462c2228c77e925888ff52fe5bda79ff2adae95 Mon Sep 17 00:00:00 2001 From: neko Date: Tue, 28 Jan 2025 09:26:03 +0500 Subject: [PATCH] Finish: Remove convertDocumentOneShot --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index e854615..af3d2b4 100644 --- a/main.py +++ b/main.py @@ -77,8 +77,6 @@ async def documentFetcher(client, message): if validDocument(mime_type=mime_type) == True: sourceDocumentPath = await downloadDocument(message.document.file_id, message.document.file_unique_id) outputDocumentPath = await unoConvertDocument(sourceDocumentPath, message.document.file_name) - else: - outputDocumentPath = await convertDocumentOneShot(sourceDocumentPath, message.document.file_name) await uploadDocument(outputDocumentPath, message.chat.id, message.id) else: return # Hopefully message will get ignored and no futher resources will be used