Skip to content

Commit 699326f

Browse files
authored
Update pyroplug.py
1 parent 57cb62d commit 699326f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/plugins/pyroplug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ async def get_msg(userbot, client, bot, sender, edit_id, msg_link, i):
150150
try:
151151
int(chat)
152152
new_link = f"t.me/c/{chat}/{msg_id}"
153-
except ValueError:
153+
except:
154154
new_link = f"t.me/b/{chat}/{msg_id}"
155-
return await get_msg(userbot, client, bot, sender, to, edit_id, new_link, i)
155+
return await get_msg(userbot, client, bot, sender, edit_id, msg_link, i)
156156
except Exception as e:
157157
print(e)
158158
if "messages.SendMedia" in str(e) \

0 commit comments

Comments
 (0)