2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Rename can_manage_voice_chats to can_manage_video_chats

This commit is contained in:
Dan 2022-04-24 11:56:07 +02:00
parent a3c7f5e991
commit c54be38696
2 changed files with 5 additions and 5 deletions

View File

@ -86,7 +86,7 @@ class PromoteChatMember:
invite_users=privileges.can_invite_users, invite_users=privileges.can_invite_users,
pin_messages=privileges.can_pin_messages, pin_messages=privileges.can_pin_messages,
add_admins=privileges.can_promote_members, add_admins=privileges.can_promote_members,
manage_call=privileges.can_manage_voice_chats, manage_call=privileges.can_manage_video_chats,
other=privileges.can_manage_chat other=privileges.can_manage_chat
), ),
rank=rank or "" rank=rank or ""

View File

@ -32,7 +32,7 @@ class ChatPrivileges(Object):
can_delete_messages (``bool``, *optional*): can_delete_messages (``bool``, *optional*):
True, if the administrator can delete messages of other users. True, if the administrator can delete messages of other users.
can_manage_voice_chats (``bool``, *optional*): can_manage_video_chats (``bool``, *optional*):
Groups and supergroups only. Groups and supergroups only.
True, if the administrator can manage voice chats (also called group calls). True, if the administrator can manage voice chats (also called group calls).
@ -71,7 +71,7 @@ class ChatPrivileges(Object):
*, *,
can_manage_chat: bool = True, can_manage_chat: bool = True,
can_delete_messages: bool = False, can_delete_messages: bool = False,
can_manage_voice_chats: bool = False, # Groups and supergroups only can_manage_video_chats: bool = False, # Groups and supergroups only
can_restrict_members: bool = False, can_restrict_members: bool = False,
can_promote_members: bool = False, can_promote_members: bool = False,
can_change_info: bool = False, can_change_info: bool = False,
@ -85,7 +85,7 @@ class ChatPrivileges(Object):
self.can_manage_chat: bool = can_manage_chat self.can_manage_chat: bool = can_manage_chat
self.can_delete_messages: bool = can_delete_messages self.can_delete_messages: bool = can_delete_messages
self.can_manage_voice_chats: bool = can_manage_voice_chats self.can_manage_video_chats: bool = can_manage_video_chats
self.can_restrict_members: bool = can_restrict_members self.can_restrict_members: bool = can_restrict_members
self.can_promote_members: bool = can_promote_members self.can_promote_members: bool = can_promote_members
self.can_change_info: bool = can_change_info self.can_change_info: bool = can_change_info
@ -100,7 +100,7 @@ class ChatPrivileges(Object):
return ChatPrivileges( return ChatPrivileges(
can_manage_chat=admin_rights.other, can_manage_chat=admin_rights.other,
can_delete_messages=admin_rights.delete_messages, can_delete_messages=admin_rights.delete_messages,
can_manage_voice_chats=admin_rights.manage_call, can_manage_video_chats=admin_rights.manage_call,
can_restrict_members=admin_rights.ban_users, can_restrict_members=admin_rights.ban_users,
can_promote_members=admin_rights.add_admins, can_promote_members=admin_rights.add_admins,
can_change_info=admin_rights.change_info, can_change_info=admin_rights.change_info,