transferChatOwnership

Transfer the ownership of a chat. User-only.

Parameters

chatId: ID

The identifier of a chat.

userId: ID

The identifier of the new owner.

password: string

The password of the current account.

Result

void

Syntax

await client.transferChatOwnership(chatId, userId, password);