mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Update default rights to the least common between supergroups & channels
Fixes #120
This commit is contained in:
parent
0a2892691c
commit
89a167b51f
@ -25,12 +25,12 @@ class PromoteChatMember(BaseClient):
|
|||||||
chat_id: int or str,
|
chat_id: int or str,
|
||||||
user_id: int or str,
|
user_id: int or str,
|
||||||
can_change_info: bool = True,
|
can_change_info: bool = True,
|
||||||
can_post_messages: bool = True,
|
can_post_messages: bool = False,
|
||||||
can_edit_messages: bool = True,
|
can_edit_messages: bool = False,
|
||||||
can_delete_messages: bool = True,
|
can_delete_messages: bool = True,
|
||||||
can_invite_users: bool = True,
|
can_invite_users: bool = True,
|
||||||
can_restrict_members: bool = True,
|
can_restrict_members: bool = True,
|
||||||
can_pin_messages: bool = True,
|
can_pin_messages: bool = False,
|
||||||
can_promote_members: bool = False):
|
can_promote_members: bool = False):
|
||||||
"""Use this method to promote or demote a user in a supergroup or a channel.
|
"""Use this method to promote or demote a user in a supergroup or a channel.
|
||||||
You must be an administrator in the chat for this to work and must have the appropriate admin rights.
|
You must be an administrator in the chat for this to work and must have the appropriate admin rights.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user