mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Fix bad params when defining and calling methods
This commit is contained in:
parent
80d7a8cbbd
commit
09e1ac5eb4
@ -510,7 +510,6 @@ class Chat(Object):
|
|||||||
|
|
||||||
def restrict_member(
|
def restrict_member(
|
||||||
self,
|
self,
|
||||||
chat_id: Union[int, str],
|
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
until_date: int = 0,
|
until_date: int = 0,
|
||||||
can_send_messages: bool = False,
|
can_send_messages: bool = False,
|
||||||
@ -582,7 +581,6 @@ class Chat(Object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
return self._client.restrict_chat_member(
|
return self._client.restrict_chat_member(
|
||||||
self,
|
|
||||||
chat_id=self.id,
|
chat_id=self.id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
until_date=until_date,
|
until_date=until_date,
|
||||||
@ -597,7 +595,7 @@ class Chat(Object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def promote_member(
|
def promote_member(
|
||||||
chat_id: Union[int, str],
|
self,
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
can_change_info: bool = True,
|
can_change_info: bool = True,
|
||||||
can_post_messages: bool = False,
|
can_post_messages: bool = False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user