telegram api method · layer 229 · #a2c0cf74

account.deleteAccount

usable by users

Delete the user's account from the telegram servers.

definition

account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;

parameters

nametypedescription
flags#Flags, see TL conditional fields
reasonstringWhy is the account being deleted, can be empty
passwordflags.0?InputCheckPasswordSRP2FA 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 »

returns

Bool

errors (2)

codeerrordescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.
4202FA_CONFIRM_WAIT_%dSince this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds.

history

present in layers 23–229 · constructor id changed 1×

idlayers
#418d4e0b23–142
#a2c0cf74143–229