haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.DeleteAccount

Synopsis

Documentation

data DeleteAccount Source #

Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. Can be called before authorization when the current authorization state is authorizationStateWaitPassword. Returns Ok

Constructors

DeleteAccount 

Fields

  • reason :: Maybe Text

    The reason why the account was deleted; optional

  • password :: Maybe Text

    The 2-step verification password of the current user. If the current user isn't authorized, then an empty string can be passed and account deletion can be canceled within one week