transferChatOwnership
Transfer the ownership of a chat. USER-ONLY
Parameters
The identifier of a chat.
The identifier of the new owner.
password: string
The password of the current account.
Result
void
Syntax
await client.transferChatOwnership(chatId, userId, password);