Class TdApi.InternalLinkTypeUserPhoneNumber
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InternalLinkType
dev.voroby.springframework.telegram.client.TdApi.InternalLinkTypeUserPhoneNumber
- Enclosing class:
- TdApi
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Draft text for message to send in the chat.boolean
True, if user's profile information screen must be opened; otherwise, the chat itself must be opened.Phone number of the user. -
Constructor Summary
ConstructorDescriptionThe link is a link to a user by its phone number.InternalLinkTypeUserPhoneNumber
(String phoneNumber, String draftText, boolean openProfile) The link is a link to a user by its phone number. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
phoneNumber
Phone number of the user. -
draftText
Draft text for message to send in the chat. -
openProfile
public boolean openProfileTrue, if user's profile information screen must be opened; otherwise, the chat itself must be opened. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InternalLinkTypeUserPhoneNumber
public InternalLinkTypeUserPhoneNumber()The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field. -
InternalLinkTypeUserPhoneNumber
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field.- Parameters:
phoneNumber
- Phone number of the user.draftText
- Draft text for message to send in the chat.openProfile
- True, if user's profile information screen must be opened; otherwise, the chat itself must be opened.
-
-
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
-