telegram api method · layer 229 · #a2c0cf74
account.deleteAccount
Delete the user's account from the telegram servers.
definition
account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
reason | string | Why is the account being deleted, can be empty |
password | InputCheckPasswordSRP | 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 » |
returns
errors (2)
| code | error | description |
|---|---|---|
| 400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
| 420 | 2FA_CONFIRM_WAIT_%d | Since 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×
| id | layers |
|---|---|
| #418d4e0b | 23–142 |
| #a2c0cf74 | 143–229 |