Skip to content

Commit

Permalink
maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 29, 2024
1 parent aaa5ea6 commit 1db34cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async def new_event(self):
await delete_links(self.message)
error = await send_message(self.message, error_msg, error_button)
return await five_minute_del(error)
user_id = self.message.from_user.id if self.message.from_user else ""
args = {
"-doc": False,
"-med": False,
Expand Down Expand Up @@ -232,7 +233,7 @@ async def new_event(self):
self.link = reply_to.text.split("\n", 1)[0].strip()
if is_telegram_link(self.link):
try:
reply_to, session = await get_tg_link_message(self.link)
reply_to, session = await get_tg_link_message(self.link, user_id)
except Exception as e:
x = await send_message(self.message, f"ERROR: {e}")
await self.remove_from_same_dir()
Expand Down

0 comments on commit 1db34cd

Please sign in to comment.