mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04:51 +00:00
Add bound method for get_common_chats (#305)
This commit is contained in:
parent
55f5a1a36c
commit
b74a8eba5e
1 changed files with 37 additions and 14 deletions
|
|
@ -322,3 +322,26 @@ class User(Object, Update):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return self._client.unblock_user(self.id)
|
return self._client.unblock_user(self.id)
|
||||||
|
|
||||||
|
def get_common_chats(self):
|
||||||
|
"""Bound method *get_common_chats* of :obj:`User`.
|
||||||
|
|
||||||
|
Use as a shortcut for:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
client.get_common_chats(123456789)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
user.get_common_chats()
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
True on success.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
RPCError: In case of a Telegram RPC error.
|
||||||
|
"""
|
||||||
|
|
||||||
|
return self._client.get_common_chats(self.id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue