Skip to content

Commit 692befe

Browse files
committed
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
1 parent bd9bb83 commit 692befe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/client/types/messages_and_media/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _parse(client, messages: types.messages.Messages, replies: int = 1) -> "Mess
7575
reply_messages = client.get_messages(
7676
parsed_messages[0].chat.id,
7777
reply_to_message_ids=reply_message_ids,
78-
replies=0
78+
replies=replies - 1
7979
).messages
8080

8181
for message in parsed_messages:

0 commit comments

Comments
 (0)