public static class TdApi.DeleteAccount extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
password
The 2-step verification password of the current user.
|
java.lang.String |
reason
The reason why the account was deleted; optional.
|
| Constructor and Description |
|---|
DeleteAccount()
Default constructor for a function, which deletes the account of the current user, deleting all information associated with the user from the server.
|
DeleteAccount(java.lang.String reason,
java.lang.String password)
Creates a function, which deletes the account of the current user, deleting all information associated with the user from the server.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String reason
public java.lang.String password
public static final int CONSTRUCTOR
public DeleteAccount()
Returns Ok
public DeleteAccount(java.lang.String reason,
java.lang.String password)
Returns Ok
reason - The reason why the account was deleted; optional.password - 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object