Changes the owner of a chat; requires owner privileges in the chat. Use the method Client.can_transfer_ownership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
chat_id |
Chat identifier |
user_id |
Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user |
password |
The 2-step verification password of the current user |