From 1db34cd162260a56b854b3d364176c5fd7580c27 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Sun, 29 Dec 2024 22:16:25 +0600 Subject: [PATCH] maybe fix --- bot/modules/mirror_leech.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/modules/mirror_leech.py b/bot/modules/mirror_leech.py index 57f3bdd50..36d6290e9 100644 --- a/bot/modules/mirror_leech.py +++ b/bot/modules/mirror_leech.py @@ -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, @@ -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()