Raw.account.DeleteAccount

Raw.account.DeleteAccount

Delete the user’s account from the telegram servers.

account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;
export namespace Raw {
  export namespace account {
    export class DeleteAccount {
      constructor(params: { reason: string; password?: Raw.TypeInputCheckPasswordSRP }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xa2c0cf74

Property

  • reason : string

    Why is the account being deleted, can be empty

  • password : Raw.TypeInputCheckPasswordSRP or undefined

    2fa password: this field can be omitted even for accounts with 2fa enabled: in this case account account deletion will be delayed by 7 days as specified in the docs

Results

boolean