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);