peyk.platforms.bale.methods.promote_chat_member

async peyk.platforms.bale.methods.promote_chat_member(self, chat_id: int | str, user_id: int, *, can_change_info: bool | None = None, can_post_messages: bool | None = None, can_edit_messages: bool | None = None, can_delete_messages: bool | None = None, can_manage_video_chats: bool | None = None, can_invite_users: bool | None = None, can_restrict_members: bool | None = None) bool[source]

Performs the promote chat member operation for the Bale client.

Parameters:
  • chat_id – Identifier of the target chat.

  • user_id – Identifier of the target user.

  • can_change_info – Value used by this operation.

  • can_post_messages – Value used by this operation.

  • can_edit_messages – Value used by this operation.

  • can_delete_messages – Value used by this operation.

  • can_manage_video_chats – Value used by this operation.

  • can_invite_users – Value used by this operation.

  • can_restrict_members – Value used by this operation.

Returns:

Result produced by the Bale operation.