mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Document iteration order
This commit is contained in:
@@ -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>`.
|
||||
|
||||
|
Reference in New Issue
Block a user