fix forwards
This commit is contained in:
parent
88c6667a2e
commit
aa3359ca8b
4
main.py
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user