From aa3359ca8b70bb461ab032d3bed7be83a61e5a8d Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 12 Mar 2021 13:17:33 +0300 Subject: [PATCH] fix forwards --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c83ccf6..f0b2c94 100755 --- a/main.py +++ b/main.py @@ -356,7 +356,9 @@ def _process_message(bot: Bot, m: Message): reply_to_message_id = user.messages_reverse.get(reply_to_message_internal_id, None) try: - r = func(*([uid] + args), **kwargs, reply_to_message_id=reply_to_message_id) + if func != m.forward: + kwargs['reply_to_message_id'] = reply_to_message_id + r = func(*([uid] + args), **kwargs) if r: user.update_from_message(r) user.messages_forward[r.message_id] = conn.root.counter