delete_account()

Client.delete_account()

Deletes the account of the current user, deleting all information associated with the user from the server.

Usable by Users Bots
Parameters:
  • reason (str, optional) – The reason why the account was deleted.

  • password (str, optional) – The 2-step verification password of the current user. If the current user isn’t authorized, then an empty string can be passed and account deletion can be canceled within one week.

Returns:

bool – True On success.

Example

await app.delete_account(reason, password)