From 09e1ac5eb49b3024eef7c1a0bfaccae192aac3a1 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 30 Jun 2019 10:48:19 +0200 Subject: [PATCH] Fix bad params when defining and calling methods --- pyrogram/client/types/user_and_chats/chat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index 90205fbf..586b49fe 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -510,7 +510,6 @@ class Chat(Object): def restrict_member( self, - chat_id: Union[int, str], user_id: Union[int, str], until_date: int = 0, can_send_messages: bool = False, @@ -582,7 +581,6 @@ class Chat(Object): """ return self._client.restrict_chat_member( - self, chat_id=self.id, user_id=user_id, until_date=until_date, @@ -597,7 +595,7 @@ class Chat(Object): ) def promote_member( - chat_id: Union[int, str], + self, user_id: Union[int, str], can_change_info: bool = True, can_post_messages: bool = False,