From c6bd9b12523c66e228a2eb7c56578296973b459c Mon Sep 17 00:00:00 2001 From: neko Date: Tue, 28 Jan 2025 10:08:09 +0500 Subject: [PATCH] Make sure file names get randomized during processing --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index af3d2b4..403256b 100644 --- a/main.py +++ b/main.py @@ -42,8 +42,8 @@ def validDocument(mime_type): ] return mime_type in valid_mime_types -async def downloadDocument(file_id, file_name): - filepath = await (app.download_media(file_id, file_name=file_name)) +async def downloadDocument(file_id, sourceDocumentName): + filepath = await (app.download_media(file_id, file_name=sourceDocumentName)) return filepath def unoCheck(): # Check if unoserver even exists