2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Allow getting more than one reply via get_messages and replies param

Just for fun (and for consistency with the code logic, since this part
is implemented recursively), not really useful and might lead to
frequent flood waits
This commit is contained in:
Dan 2019-05-08 15:40:36 +02:00
parent bd9bb83df5
commit 692befe038

View File

@ -75,7 +75,7 @@ class Messages(PyrogramType, Update):
reply_messages = client.get_messages( reply_messages = client.get_messages(
parsed_messages[0].chat.id, parsed_messages[0].chat.id,
reply_to_message_ids=reply_message_ids, reply_to_message_ids=reply_message_ids,
replies=0 replies=replies - 1
).messages ).messages
for message in parsed_messages: for message in parsed_messages: