From 692befe038e924354aad74a0706b8e0890e7ce3d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 8 May 2019 15:40:36 +0200 Subject: [PATCH] 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 --- pyrogram/client/types/messages_and_media/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/messages_and_media/messages.py b/pyrogram/client/types/messages_and_media/messages.py index da1a2676..4f78277c 100644 --- a/pyrogram/client/types/messages_and_media/messages.py +++ b/pyrogram/client/types/messages_and_media/messages.py @@ -75,7 +75,7 @@ class Messages(PyrogramType, Update): reply_messages = client.get_messages( parsed_messages[0].chat.id, reply_to_message_ids=reply_message_ids, - replies=0 + replies=replies - 1 ).messages for message in parsed_messages: