From 1c5dff4cf77496f400e4b16c342c7e966139a297 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Thu, 19 Sep 2024 11:05:48 +0600 Subject: [PATCH] update --- bot/helper/ext_utils/help_messages.py | 1 + bot/helper/mirror_leech_utils/telegram_uploader.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/helper/ext_utils/help_messages.py b/bot/helper/ext_utils/help_messages.py index 18e7c184f..f99f81dff 100644 --- a/bot/helper/ext_utils/help_messages.py +++ b/bot/helper/ext_utils/help_messages.py @@ -25,6 +25,7 @@ "orgy", "horny", "swingers", + "ullu", ] diff --git a/bot/helper/mirror_leech_utils/telegram_uploader.py b/bot/helper/mirror_leech_utils/telegram_uploader.py index d6ce013da..7964a9412 100644 --- a/bot/helper/mirror_leech_utils/telegram_uploader.py +++ b/bot/helper/mirror_leech_utils/telegram_uploader.py @@ -340,6 +340,7 @@ async def _upload_file(self, cap_mono, file, o_path, force_document=False): if self._thumb and not await aiopath.exists(self._thumb): self._thumb = None thumb = self._thumb + is_doc = Flase self._is_corrupted = False try: @@ -358,7 +359,7 @@ async def _upload_file(self, cap_mono, file, o_path, force_document=False): or force_document or (not is_video and not is_audio and not is_image) ): - isDoc = True + is_doc = True await self._upload_document(cap_mono, thumb, is_video) elif is_video: await self._upload_video(cap_mono, thumb) @@ -381,7 +382,7 @@ async def _upload_file(self, cap_mono, file, o_path, force_document=False): await remove(thumb) err_type = "RPCError: " if isinstance(err, RPCError) else "" LOGGER.error(f"{err_type}{err}. Path: {self._up_path}") - if "Telegram says: [400" in str(err) and not isDoc: + if "Telegram says: [400" in str(err) and not is_doc: LOGGER.error(f"Retrying As Document. Path: {self._up_path}") return await self._upload_file(cap_mono, file, o_path, True) raise err