Skip to content

deleteAccount

Sahri Riza Umami edited this page Jun 24, 2018 · 4 revisions

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.

deleteAccount(reason)
Field Type Description
reason string The reason why the account was deleted; optional.

Example

  • Deletes the account of currently logged in user, deleting from the server all information associated with it.

    deleteAccount('Testing tdbot.lua')

    Response:

    I've got error code 500, but the account was deleted.

    {
      ["@type"] = "error",
      code = 500,
      message = "Receive false as result of the request"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally