Remove the "private" _total parameter

This commit is contained in:
Lonami Exo
2019-02-27 12:59:50 +01:00
parent bf71e49fcc
commit d508e58d49
3 changed files with 6 additions and 14 deletions

View File

@@ -97,8 +97,8 @@ class DialogMethods(UserMethods):
def iter_dialogs(
self, limit=None, *, offset_date=None, offset_id=0,
offset_peer=types.InputPeerEmpty(), ignore_migrated=False,
_total=None):
offset_peer=types.InputPeerEmpty(), ignore_migrated=False
):
"""
Returns an iterator over the dialogs, yielding 'limit' at most.
Dialogs are the open "chats" or conversations with other people,
@@ -127,9 +127,6 @@ class DialogMethods(UserMethods):
dialogs are returned, but setting this to ``True`` will hide
them in the same way official applications do.
_total (`list`, optional):
A single-item list to pass the total parameter by reference.
Yields:
Instances of `telethon.tl.custom.dialog.Dialog`.
"""