Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use Client.transfer_chat_ownership instead. Use Client.add_chat_member or Client.ban_chat_member if some additional parameters needs to be passed
chat_id |
Chat identifier |
member_id |
Member identifier. Chats can be only banned and unbanned in supergroups and channels |
status |
The new status of the member in the chat |