From 3f56f7c2da845f3099286b7890f8252cc94f2f56 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Mon, 6 Jan 2025 09:03:27 +0600 Subject: [PATCH] fix caption --- bot/helper/mirror_leech_utils/telegram_uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/mirror_leech_utils/telegram_uploader.py b/bot/helper/mirror_leech_utils/telegram_uploader.py index 8c8ba3a93..52b37f6f2 100644 --- a/bot/helper/mirror_leech_utils/telegram_uploader.py +++ b/bot/helper/mirror_leech_utils/telegram_uploader.py @@ -170,7 +170,7 @@ async def _prepare_file(self, file_, dirpath, delete_file): new_path = ospath.join(dirpath, f"{self._lprefix} {file_}") await rename(self._up_path, new_path) self._up_path = new_path - else: + if not self._lcaption and not self._lprefix: cap_mono = f"{file_}" if len(file_) > 60: if is_archive(file_):