Fix get_messages return type

This commit is contained in:
Dan 2019-01-04 23:12:06 +01:00
parent 153439ac88
commit b8a3d02eef

View File

@ -33,7 +33,7 @@ class GetMessages(BaseClient):
chat_id: Union[int, str],
message_ids: Union[int, Iterable[int]] = None,
reply_to_message_ids: Union[int, Iterable[int]] = None,
replies: int = 1) -> "pyrogram.Messages":
replies: int = 1) -> Union["pyrogram.Message", "pyrogram.Messages"]:
"""Use this method to get one or more messages that belong to a specific chat.
You can retrieve up to 200 messages at once.