account.deleteAccount
Delete the user's account from the telegram servers.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
reason | string | أيوه | Why is the account being deleted, can be empty |
password | InputCheckPasswordSRP | لأ | [2FA password](https://core.telegram.org/api/srp.md): 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 »](https://core.telegram.org/api/account-deletion.md) |
الردود
Bool
MTProto RPC
- 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.
- 400 · PASSWORD_HASH_INVALID — The provided password hash is invalid.