Skip to content

transferChatOwnership

Function · TDLib 1.8.67 · d1085f9c

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

transferChatOwnership(
  chat_id: int53,
  user_id: int53,
  password: string
) → Ok

chat_id

int53

Chat identifier

user_id

int53

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