mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Fix small typos
This commit is contained in:
parent
4a9cfa42de
commit
e30b9c5255
1 changed files with 3 additions and 3 deletions
|
|
@ -251,7 +251,7 @@ class Chat(Object):
|
||||||
for c in chat_full.chats:
|
for c in chat_full.chats:
|
||||||
if full_chat.id == c.id:
|
if full_chat.id == c.id:
|
||||||
chat = c
|
chat = c
|
||||||
|
|
||||||
if isinstance(chat_full, types.ChannelFull):
|
if isinstance(chat_full, types.ChannelFull):
|
||||||
if full_chat.linked_chat_id == c.id:
|
if full_chat.linked_chat_id == c.id:
|
||||||
linked_chat = c
|
linked_chat = c
|
||||||
|
|
@ -547,13 +547,13 @@ class Chat(Object):
|
||||||
client.restrict_chat_member(
|
client.restrict_chat_member(
|
||||||
chat_id=chat_id,
|
chat_id=chat_id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
permissions=ChatPermission()
|
permissions=ChatPermissions()
|
||||||
)
|
)
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
chat.restrict_member(user_id, ChatPermission())
|
chat.restrict_member(user_id, ChatPermissions())
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
user_id (``int`` | ``str``):
|
user_id (``int`` | ``str``):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue