Document iteration order

This commit is contained in:
Lonami Exo
2019-06-28 20:44:06 +02:00
parent 84c4fcdec6
commit 9322c37a94
3 changed files with 15 additions and 0 deletions

View File

@@ -127,6 +127,10 @@ class DialogMethods:
"""
Iterator over the dialogs (open conversations/subscribed channels).
The order is the same as the one seen in official applications
(first pinned, them from those with the most recent message to
those with the oldest message).
Arguments
limit (`int` | `None`):
How many dialogs to be retrieved as maximum. Can be set to
@@ -227,6 +231,8 @@ class DialogMethods:
"""
Iterator over all open draft messages.
The order is unspecified.
Yields
Instances of `Draft <telethon.tl.custom.draft.Draft>`.