Class TdApi.CreateTemporaryPassword
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.TemporaryPasswordState>
dev.voroby.springframework.telegram.client.TdApi.CreateTemporaryPassword
- Enclosing class:
- TdApi
public static class TdApi.CreateTemporaryPassword
extends TdApi.Function<TdApi.TemporaryPasswordState>
Creates a new temporary password for processing payments.
Returns TemporaryPasswordState
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The 2-step verification password of the current user.int
Time during which the temporary password will be valid, in seconds; must be between 60 and 86400. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which creates a new temporary password for processing payments.CreateTemporaryPassword
(String password, int validFor) Creates a function, which creates a new temporary password for processing payments. -
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. -
validFor
public int validForTime during which the temporary password will be valid, in seconds; must be between 60 and 86400. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateTemporaryPassword
public CreateTemporaryPassword()Default constructor for a function, which creates a new temporary password for processing payments.Returns
TemporaryPasswordState
-
CreateTemporaryPassword
Creates a function, which creates a new temporary password for processing payments.Returns
TemporaryPasswordState
- Parameters:
password
- The 2-step verification password of the current user.validFor
- Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.
-
-
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
-