Document Dialogs

This commit is contained in:
Dan 2018-07-13 01:10:33 +02:00
parent 5c34e3f08f
commit 85e3c05216

View File

@ -20,9 +20,17 @@ from pyrogram.api.core import Object
class Dialogs(Object): class Dialogs(Object):
"""This object represents a user's dialogs chunk
Args:
total_count (``int``):
Total number of dialogs the user has.
dialogs (List of :obj:`Dialog <pyrogram.Dialog>`):
Requested dialogs.
"""
ID = 0xb0700029 ID = 0xb0700029
def __init__(self, total_count: int, dialogs: list): def __init__(self, total_count: int, dialogs: list):
# TODO docstrings
self.total_count = total_count self.total_count = total_count
self.dialogs = dialogs self.dialogs = dialogs