Finish: Remove convertDocumentOneShot

This commit is contained in:
neko 2025-01-28 09:26:03 +05:00
parent 2d13526926
commit c462c2228c
1 changed files with 0 additions and 2 deletions

View File

@ -77,8 +77,6 @@ async def documentFetcher(client, message):
if validDocument(mime_type=mime_type) == True: if validDocument(mime_type=mime_type) == True:
sourceDocumentPath = await downloadDocument(message.document.file_id, message.document.file_unique_id) sourceDocumentPath = await downloadDocument(message.document.file_id, message.document.file_unique_id)
outputDocumentPath = await unoConvertDocument(sourceDocumentPath, message.document.file_name) 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) await uploadDocument(outputDocumentPath, message.chat.id, message.id)
else: else:
return # Hopefully message will get ignored and no futher resources will be used return # Hopefully message will get ignored and no futher resources will be used