Skip to content

Commit 081a1cf

Browse files
authored
Debug
1 parent 5bd9955 commit 081a1cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helper_func.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ async def get_message_id(client, message):
6161
return first_message.forward_from_message_id
6262
else:
6363
return 0
64-
elif first_message.forward_sender_name:
64+
elif message.forward_sender_name:
6565
return 0
66-
elif first_message.text:
66+
elif message.text:
6767
pattern = "https://t.me/(?:c/)?(.*)/(\d+)"
68-
matches = re.match(pattern,first_message.text)
68+
matches = re.match(pattern,message.text)
6969
if not matches:
7070
return 0
7171
channel_id = matches.group(1)

0 commit comments

Comments
 (0)