Class TdApi.SetRecoveryEmailAddress
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.PasswordState>
dev.voroby.springframework.telegram.client.TdApi.SetRecoveryEmailAddress
- Enclosing class:
- TdApi
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.
Returns PasswordState
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.New recovery email address.The 2-step verification password of the current user. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which changes the 2-step verification recovery email address of the user.SetRecoveryEmailAddress
(String password, String newRecoveryEmailAddress) Creates a function, which changes the 2-step verification recovery email address of the user. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
password
The 2-step verification password of the current user. -
newRecoveryEmailAddress
New recovery email address. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetRecoveryEmailAddress
public SetRecoveryEmailAddress()Default constructor for a function, which changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.Returns
PasswordState
-
SetRecoveryEmailAddress
Creates a function, which changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.Returns
PasswordState
- Parameters:
password
- The 2-step verification password of the current user.newRecoveryEmailAddress
- New recovery email address.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-