mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-23 18:37:26 +00:00
Add is_pinned attribute to Dialog
This commit is contained in:
parent
21d914e414
commit
088a4c35c9
@ -92,7 +92,8 @@ class GetDialogs(BaseClient):
|
|||||||
top_message=messages.get(chat_id),
|
top_message=messages.get(chat_id),
|
||||||
unread_messages_count=dialog.unread_count,
|
unread_messages_count=dialog.unread_count,
|
||||||
unread_mentions_count=dialog.unread_mentions_count,
|
unread_mentions_count=dialog.unread_mentions_count,
|
||||||
unread_mark=dialog.unread_mark
|
unread_mark=dialog.unread_mark,
|
||||||
|
is_pinned=dialog.pinned
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ class Dialog(Object):
|
|||||||
|
|
||||||
unread_mark (``bool``):
|
unread_mark (``bool``):
|
||||||
True, if the dialog has the unread mark set.
|
True, if the dialog has the unread mark set.
|
||||||
|
|
||||||
|
is_pinned (``bool``):
|
||||||
|
True, if the dialog is pinned.
|
||||||
"""
|
"""
|
||||||
ID = 0xb0700028
|
ID = 0xb0700028
|
||||||
|
|
||||||
@ -45,9 +48,11 @@ class Dialog(Object):
|
|||||||
top_message,
|
top_message,
|
||||||
unread_messages_count: int,
|
unread_messages_count: int,
|
||||||
unread_mentions_count: int,
|
unread_mentions_count: int,
|
||||||
unread_mark: bool):
|
unread_mark: bool,
|
||||||
|
is_pinned: bool):
|
||||||
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
|
||||||
self.unread_mentions_count = unread_mentions_count
|
self.unread_mentions_count = unread_mentions_count
|
||||||
self.unread_mark = unread_mark
|
self.unread_mark = unread_mark
|
||||||
|
self.is_pinned = is_pinned
|
||||||
|
Loading…
x
Reference in New Issue
Block a user