Skip to content

Commit f266483

Browse files
authored
Update link_generator.py
1 parent e0c35eb commit f266483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/link_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def batch(client: Client, message: Message):
2828
await first_message.reply("This is not a Proper telegram post link", quote=True)
2929
continue
3030
channel_id = matches.group(1)
31-
f_msg_id = matches.group(2)
31+
f_msg_id = int(matches.group(2))
3232
if channel_id.isdigit():
3333
if f"-100{channel_id}" == str(client.db_channel.id):
3434
break
@@ -59,7 +59,7 @@ async def batch(client: Client, message: Message):
5959
await second_message.reply("This is not a Proper telegram post link", quote=True)
6060
continue
6161
channel_id = matches.group(1)
62-
s_msg_id = matches.group(2)
62+
s_msg_id = int(matches.group(2))
6363
if channel_id.isdigit():
6464
if f"-100{channel_id}" == str(client.db_channel.id):
6565
break

0 commit comments

Comments
 (0)