Fix SyntaxError

This commit is contained in:
blank X 2021-02-11 19:49:16 +07:00
parent e89e1b5667
commit 4ac0d187d1
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ async def main():
return
if reply.forward and reply.forward.sender_id:
user = await reply.forward.get_input_sender()
elif not reply.forward and match := hidden_fwd_regex.match(reply.raw_text):
elif (match := hidden_fwd_regex.match(reply.raw_text)) and not reply.forward:
user = InputPeerUser(int(match.group(1)), int(match.group(2)))
else:
return