Class TdApi.RegisterUser
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.RegisterUser
- Enclosing class:
- TdApi
Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to disable notification about the current user joining Telegram for other users that added them to contact list.The first name of the user; 1-64 characters.The last name of the user; 0-64 characters. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which finishes user registration.RegisterUser
(String firstName, String lastName, boolean disableNotification) Creates a function, which finishes user registration. -
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
-
firstName
The first name of the user; 1-64 characters. -
lastName
The last name of the user; 0-64 characters. -
disableNotification
public boolean disableNotificationPass true to disable notification about the current user joining Telegram for other users that added them to contact list. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
RegisterUser
public RegisterUser()Default constructor for a function, which finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.Returns
Ok
-
RegisterUser
Creates a function, which finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.Returns
Ok
- Parameters:
firstName
- The first name of the user; 1-64 characters.lastName
- The last name of the user; 0-64 characters.disableNotification
- Pass true to disable notification about the current user joining Telegram for other users that added them to contact list.
-
-
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
-