mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Add better summary for get_messages
This commit is contained in:
parent
7b9a38a2ba
commit
87bbd764b9
@ -28,6 +28,9 @@ from ...ext import BaseClient, utils
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: Rewrite using a flag for replied messages and have message_ids non-optional
|
||||||
|
|
||||||
|
|
||||||
class GetMessages(BaseClient):
|
class GetMessages(BaseClient):
|
||||||
def get_messages(
|
def get_messages(
|
||||||
self,
|
self,
|
||||||
@ -36,7 +39,8 @@ class GetMessages(BaseClient):
|
|||||||
reply_to_message_ids: Union[int, Iterable[int]] = None,
|
reply_to_message_ids: Union[int, Iterable[int]] = None,
|
||||||
replies: int = 1
|
replies: int = 1
|
||||||
) -> Union["pyrogram.Message", List["pyrogram.Message"]]:
|
) -> Union["pyrogram.Message", List["pyrogram.Message"]]:
|
||||||
"""Get one or more messages that belong to a specific chat.
|
"""Get one or more messages from a chat by using message identifiers.
|
||||||
|
|
||||||
You can retrieve up to 200 messages at once.
|
You can retrieve up to 200 messages at once.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
Loading…
Reference in New Issue
Block a user