We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd9955 commit 081a1cfCopy full SHA for 081a1cf
helper_func.py
@@ -61,11 +61,11 @@ async def get_message_id(client, message):
61
return first_message.forward_from_message_id
62
else:
63
return 0
64
- elif first_message.forward_sender_name:
+ elif message.forward_sender_name:
65
66
- elif first_message.text:
+ elif message.text:
67
pattern = "https://t.me/(?:c/)?(.*)/(\d+)"
68
- matches = re.match(pattern,first_message.text)
+ matches = re.match(pattern,message.text)
69
if not matches:
70
71
channel_id = matches.group(1)
0 commit comments