mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Merge pull request #94 from YoilyL/develop
added reverse option to get_history
This commit is contained in:
commit
d9d1afd305
1 changed files with 4 additions and 2 deletions
|
|
@ -28,8 +28,11 @@ class GetHistory(BaseClient):
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
offset: int = 0,
|
offset: int = 0,
|
||||||
limit: int = 100,
|
limit: int = 100,
|
||||||
|
offset: int = 0,
|
||||||
offset_id: int = 0,
|
offset_id: int = 0,
|
||||||
offset_date: int = 0):
|
offset_date: int = 0,
|
||||||
|
add_offset: int = 0,
|
||||||
|
downwards: bool = False):
|
||||||
"""Use this method to retrieve the history of a chat.
|
"""Use this method to retrieve the history of a chat.
|
||||||
|
|
||||||
You can get up to 100 messages at once.
|
You can get up to 100 messages at once.
|
||||||
|
|
@ -60,7 +63,6 @@ class GetHistory(BaseClient):
|
||||||
Raises:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
|
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return pyrogram.Messages._parse(
|
return pyrogram.Messages._parse(
|
||||||
self,
|
self,
|
||||||
self.send(
|
self.send(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue