Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hartemis authored Sep 28, 2022
1 parent b081185 commit f2a2cde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/helper/mirror_utils/upload_utils/pyrogramEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f2a2cde

Please sign in to comment.