haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.TransferChatOwnership

Synopsis

Documentation

data TransferChatOwnership Source #

Changes the owner of a chat; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats. Returns Ok

Constructors

TransferChatOwnership 

Fields

  • chat_id :: Maybe Int

    Chat identifier

  • user_id :: Maybe Int

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

  • password :: Maybe Text

    The 2-step verification password of the current user