mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add docstrings for Dialog type
This commit is contained in:
parent
fa512a690d
commit
82d4a99fd5
1 changed files with 18 additions and 1 deletions
|
|
@ -20,6 +20,24 @@ from pyrogram.api.core import Object
|
||||||
|
|
||||||
|
|
||||||
class Dialog(Object):
|
class Dialog(Object):
|
||||||
|
"""This object represents a dialog
|
||||||
|
|
||||||
|
Args:
|
||||||
|
chat (:obj:`Chat <pyrogram.Chat>`):
|
||||||
|
Conversation the dialog belongs to.
|
||||||
|
|
||||||
|
top_message (:obj:`Message <pyrogram.Message>`):
|
||||||
|
The last message sent in the dialog at this time.
|
||||||
|
|
||||||
|
unread_messages_count (``int``):
|
||||||
|
Amount of unread messages in this dialogs.
|
||||||
|
|
||||||
|
unread_mentions_count (``int``):
|
||||||
|
Amount of unread messages containing a mention in this dialog.
|
||||||
|
|
||||||
|
unread_mark (``bool``):
|
||||||
|
True, if the dialog has the unread mark set.
|
||||||
|
"""
|
||||||
ID = 0xb0700028
|
ID = 0xb0700028
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
|
|
@ -28,7 +46,6 @@ class Dialog(Object):
|
||||||
unread_messages_count: int,
|
unread_messages_count: int,
|
||||||
unread_mentions_count: int,
|
unread_mentions_count: int,
|
||||||
unread_mark: bool):
|
unread_mark: bool):
|
||||||
# TODO docstrings
|
|
||||||
self.chat = chat
|
self.chat = chat
|
||||||
self.top_message = top_message
|
self.top_message = top_message
|
||||||
self.unread_messages_count = unread_messages_count
|
self.unread_messages_count = unread_messages_count
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue