Don't handle Hidden User messages if it's a reply
This commit is contained in:
parent
5d27a6d911
commit
e89e1b5667
2
rias.py
2
rias.py
|
@ -145,7 +145,7 @@ async def main():
|
||||||
return
|
return
|
||||||
if reply.forward and reply.forward.sender_id:
|
if reply.forward and reply.forward.sender_id:
|
||||||
user = await reply.forward.get_input_sender()
|
user = await reply.forward.get_input_sender()
|
||||||
elif match := hidden_fwd_regex.match(reply.raw_text):
|
elif not reply.forward and match := hidden_fwd_regex.match(reply.raw_text):
|
||||||
user = InputPeerUser(int(match.group(1)), int(match.group(2)))
|
user = InputPeerUser(int(match.group(1)), int(match.group(2)))
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue