View Source ExTDLib.Method.DeleteAccount (ExTDLib v0.0.4)
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 object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| reason | string | The reason why the account was deleted; optional. |
| password | string | The 2-step verification password of the current user. If not specified, account deletion can be canceled within one week. |
More details on telegram's documentation.