Interface TransferChatOwnership

Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Request type for Tdjson#transferChatOwnership.

interface TransferChatOwnership {
    @type: "transferChatOwnership";
    chat_id: number;
    password: string;
    user_id: number;
}

Properties

@type: "transferChatOwnership"
chat_id: number

Chat identifier.

password: string

The 2-step verification password of the current user.

user_id: number

Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user.