File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
pyrogram/client/types/user_and_chats Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -215,17 +215,23 @@ def unarchive(self):
215215
216216 return self ._client .unarchive_chats (self .id )
217217
218-
219218 def block (self ):
220219 """Bound method *block* of :obj:`User`.
220+
221221 Use as a shortcut for:
222+
222223 .. code-block:: python
224+
223225 client.block_user(123456789)
226+
224227 Example:
225228 .. code-block:: python
229+
226230 user.block()
231+
227232 Returns:
228233 True on success.
234+
229235 Raises:
230236 RPCError: In case of a Telegram RPC error.
231237 """
@@ -235,14 +241,21 @@ def block(self):
235241
236242 def unblock (self ):
237243 """Bound method *unblock* of :obj:`User`.
244+
238245 Use as a shortcut for:
246+
239247 .. code-block:: python
248+
240249 client.unblock_user(123456789)
250+
241251 Example:
242252 .. code-block:: python
253+
243254 user.unblock()
255+
244256 Returns:
245257 True on success.
258+
246259 Raises:
247260 RPCError: In case of a Telegram RPC error.
248261 """
You can’t perform that action at this time.
0 commit comments