From f2a2cde4ed108348cd4388c161b4c3d2953e4ef7 Mon Sep 17 00:00:00 2001 From: huzunluartemis <111054559+hartemis@users.noreply.github.com> Date: Wed, 28 Sep 2022 21:33:53 +0300 Subject: [PATCH] fix #135 --- bot/helper/mirror_utils/upload_utils/pyrogramEngine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py b/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py index a9d627b878..94e595d890 100644 --- a/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py +++ b/bot/helper/mirror_utils/upload_utils/pyrogramEngine.py @@ -138,7 +138,7 @@ def __upload_file(self, up_path, file_, dirpath): supports_streaming=True, disable_notification=True, progress=self.__upload_progress) - if not self.isPrivate and BOT_PM: + if BOT_PM: try: app.copy_message(chat_id=self.__user_id, from_chat_id=self.__sent_msg.chat.id, message_id=self.__sent_msg.id) except Exception as err: @@ -153,7 +153,7 @@ def __upload_file(self, up_path, file_, dirpath): thumb=thumb, disable_notification=True, progress=self.__upload_progress) - if not self.isPrivate and BOT_PM: + if BOT_PM: try: app.copy_message(chat_id=self.__user_id, from_chat_id=self.__sent_msg.chat.id, message_id=self.__sent_msg.id) except Exception as err: @@ -163,7 +163,7 @@ def __upload_file(self, up_path, file_, dirpath): caption=cap_mono, disable_notification=True, progress=self.__upload_progress) - if not self.isPrivate and BOT_PM: + if BOT_PM: try: app.copy_message(chat_id=self.__user_id, from_chat_id=self.__sent_msg.chat.id, message_id=self.__sent_msg.id) except Exception as err: @@ -182,7 +182,7 @@ def __upload_file(self, up_path, file_, dirpath): caption=cap_mono, disable_notification=True, progress=self.__upload_progress) - if not self.isPrivate and BOT_PM: + if BOT_PM: try: app.copy_message(chat_id=self.__user_id, from_chat_id=self.__sent_msg.chat.id, message_id=self.__sent_msg.id) except Exception as err: