mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Add missing bound method Chat.mark_unread
This commit is contained in:
parent
967f25796c
commit
b9adc5c294
1 changed files with 20 additions and 0 deletions
|
|
@ -868,3 +868,23 @@ class Chat(Object):
|
|||
user_ids=user_ids,
|
||||
forward_limit=forward_limit
|
||||
)
|
||||
|
||||
async def mark_unread(self, ) -> bool:
|
||||
"""Bound method *mark_unread* of :obj:`~pyrogram.types.Chat`.
|
||||
|
||||
Use as a shortcut for:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
client.mark_unread(chat_id)
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
chat.mark_unread()
|
||||
|
||||
Returns:
|
||||
``bool``: On success, True is returned.
|
||||
"""
|
||||
|
||||
return await self._client.mark_chat_unread(self.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue