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