From 005c24e4bd711d4bd8005cb76bfe65e969ce7407 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 28 Oct 2018 17:24:37 +0100 Subject: [PATCH] Update get_messages docstrings --- .../client/methods/messages/get_messages.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pyrogram/client/methods/messages/get_messages.py b/pyrogram/client/methods/messages/get_messages.py index 29cce695..25fd0da1 100644 --- a/pyrogram/client/methods/messages/get_messages.py +++ b/pyrogram/client/methods/messages/get_messages.py @@ -35,18 +35,23 @@ class GetMessages(BaseClient): For your personal cloud (Saved Messages) you can simply use "me" or "self". For a contact that exists in your Telegram address book you can use his phone number (str). - message_ids (``iterable``): - A list of Message identifiers in the chat specified in *chat_id* or a single message id, as integer. - Iterators and Generators are also accepted. + message_ids (``iterable``, *optional*): + Pass a single message identifier or a list of message ids (as integers) to get the content of the + message themselves. Iterators and Generators are also accepted. + + reply_to_message_ids (``iterable``, *optional*): + Pass a single message identifier or a list of message ids (as integers) to get the content of + the previous message you replied to using this message. Iterators and Generators are also accepted. + If *message_ids* is set, this argument will be ignored. replies (``int``, *optional*): The number of subsequent replies to get for each message. Defaults to 1. Returns: - On success and in case *message_ids* was a list, the returned value will be a list of the requested - :obj:`Messages ` even if a list contains just one element, otherwise if - *message_ids* was an integer, the single requested :obj:`Message ` - is returned. + On success and in case *message_ids* or *reply_to_message_ids* was a list, the returned value will be a + list of the requested :obj:`Messages ` even if a list contains just one element, + otherwise if *message_ids* or *reply_to_message_ids* was an integer, the single requested + :obj:`Message ` is returned. Raises: :class:`Error `