From e89e1b56679cca1228785081d8ce311a41569273 Mon Sep 17 00:00:00 2001 From: blank X Date: Thu, 11 Feb 2021 19:43:58 +0700 Subject: [PATCH] Don't handle Hidden User messages if it's a reply --- rias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rias.py b/rias.py index 8d523c3..c7dd115 100644 --- a/rias.py +++ b/rias.py @@ -145,7 +145,7 @@ async def main(): return if reply.forward and reply.forward.sender_id: 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))) else: return