@@ -609,14 +609,16 @@ async def restrict_member(
609609 async def promote_member (
610610 self ,
611611 user_id : Union [int , str ],
612+ can_manage_chat : bool = True ,
612613 can_change_info : bool = True ,
613614 can_post_messages : bool = False ,
614615 can_edit_messages : bool = False ,
615616 can_delete_messages : bool = True ,
616617 can_restrict_members : bool = True ,
617618 can_invite_users : bool = True ,
618619 can_pin_messages : bool = False ,
619- can_promote_members : bool = False
620+ can_promote_members : bool = False ,
621+ can_manage_voice_chats : bool = False
620622 ) -> bool :
621623 """Bound method *promote_member* of :obj:`~pyrogram.types.Chat`.
622624
@@ -640,6 +642,11 @@ async def promote_member(
640642 Unique identifier (int) or username (str) of the target user.
641643 For a contact that exists in your Telegram address book you can use his phone number (str).
642644
645+ can_manage_chat (``bool``, *optional*):
646+ Pass True, if the administrator can access the chat event log, chat statistics, message statistics
647+ in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode.
648+ Implied by any other administrator privilege.
649+
643650 can_change_info (``bool``, *optional*):
644651 Pass True, if the administrator can change chat title, photo and other settings.
645652
@@ -666,6 +673,9 @@ async def promote_member(
666673 demote administrators that he has promoted, directly or indirectly (promoted by administrators that
667674 were appointed by him).
668675
676+ can_manage_voice_chats (``bool``, *optional*):
677+ Pass True, if the administration can manage voice chats (also called group calls).
678+
669679 Returns:
670680 ``bool``: True on success.
671681
@@ -676,14 +686,16 @@ async def promote_member(
676686 return await self ._client .promote_chat_member (
677687 chat_id = self .id ,
678688 user_id = user_id ,
689+ can_manage_chat = can_manage_chat ,
679690 can_change_info = can_change_info ,
680691 can_post_messages = can_post_messages ,
681692 can_edit_messages = can_edit_messages ,
682693 can_delete_messages = can_delete_messages ,
683694 can_restrict_members = can_restrict_members ,
684695 can_invite_users = can_invite_users ,
685696 can_pin_messages = can_pin_messages ,
686- can_promote_members = can_promote_members
697+ can_promote_members = can_promote_members ,
698+ can_manage_voice_chats = can_manage_voice_chats
687699 )
688700
689701 async def join (self ):
0 commit comments