mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix bad params when defining and calling methods
This commit is contained in:
parent
80d7a8cbbd
commit
09e1ac5eb4
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue