Class InlineQueryResultContact
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultContact
- All Implemented Interfaces:
InlineQueryResult,Serializable
Represents a contact with a phone number. By default, this contact will be sent by the user.
Alternatively, you can use
setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the contact- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultContact(String id, String phoneNumber, String firstName) Required -
Method Summary
Modifier and TypeMethodDescriptionsetInputMessageContent(InputTextMessageContent inputMessageContent) OptionalsetLastName(String lastName) OptionalsetReplyMarkup(InlineKeyboardMarkup replyMarkup) OptionalsetThumbnailHeight(Integer thumbnailHeight) OptionalsetThumbnailUrl(String thumbnailUrl) OptionalsetThumbnailWidth(Integer thumbnailWidth) OptionalOptional
-
Constructor Details
-
InlineQueryResultContact
Required- Parameters:
id- Unique identifier for this result, 1-64 BytesphoneNumber- Contact's phone numberfirstName- Contact's first name
-
-
Method Details
-
setLastName
Optional- Parameters:
lastName- Contact's last name- Returns:
InlineQueryResultContact
-
setVcard
Optional- Parameters:
vcard- Additional data about the contact in the form of a vCard, 0-2048 bytes- Returns:
InlineQueryResultContact
-
setInputMessageContent
Optional- Parameters:
inputMessageContent- Content of the message to be sent instead of the contact- Returns:
InlineQueryResultContact
-
setReplyMarkup
Optional- Parameters:
replyMarkup-Inline keyboardattached to the message- Returns:
InlineQueryResultContact
-
setThumbnailUrl
Optional- Parameters:
thumbnailUrl- Url of the thumbnail for the result- Returns:
InlineQueryResultContact
-
setThumbnailWidth
Optional- Parameters:
thumbnailWidth- Thumbnail width- Returns:
InlineQueryResultContact
-
setThumbnailHeight
Optional- Parameters:
thumbnailHeight- Thumbnail height- Returns:
InlineQueryResultContact
-