View Source ExTDLib.Method.TransferChatOwnership (ExTDLib v0.0.4)
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| chat_id | string | Chat identifier. |
| user_id | string | Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user. |
| password | string | The 2-step verification password of the current user. |
More details on telegram's documentation.