From e30b9c52555f3ca66a64471a6e2862d216954320 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 23 May 2020 15:03:52 +0200 Subject: [PATCH] Fix small typos --- pyrogram/client/types/user_and_chats/chat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index 4a7904ce..d95c5b37 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -251,7 +251,7 @@ class Chat(Object): for c in chat_full.chats: if full_chat.id == c.id: chat = c - + if isinstance(chat_full, types.ChannelFull): if full_chat.linked_chat_id == c.id: linked_chat = c @@ -547,13 +547,13 @@ class Chat(Object): client.restrict_chat_member( chat_id=chat_id, user_id=user_id, - permissions=ChatPermission() + permissions=ChatPermissions() ) Example: .. code-block:: python - chat.restrict_member(user_id, ChatPermission()) + chat.restrict_member(user_id, ChatPermissions()) Parameters: user_id (``int`` | ``str``):