transfer_chat_ownership


Description:

public async Ok transfer_chat_ownership (int64 chat_id, int64 user_id, string password) throws TDLibError

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

Parameters:

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