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
inputMessageContent(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 phone_number, String first_name) Required -
Method Summary
Modifier and TypeMethodDescriptioninputMessageContent
(InputTextMessageContent input_message_content) OptionalOptionalreplyMarkup
(InlineKeyboardMarkup keyboard) OptionalthumbnailHeight
(int thumbnail_height) OptionalthumbnailUrl
(String thumbnail_url) OptionalthumbnailWidth
(int thumbnail_width) OptionalOptional
-
Constructor Details
-
InlineQueryResultContact
-
-
Method Details
-
lastName
Optional- Parameters:
last_name
- Contact's last name- Returns:
InlineQueryResultContact
-
vcard
Optional- Parameters:
vcard
- Additional data about the contact in the form of a vCard, 0-2048 bytes- Returns:
InlineQueryResultContact
-
inputMessageContent
Optional- Parameters:
input_message_content
- Content of the message to be sent instead of the contact- Returns:
InlineQueryResultContact
-
replyMarkup
Optional- Parameters:
keyboard
-Inline keyboard
attached to the message- Returns:
InlineQueryResultContact
-
thumbnailUrl
Optional- Parameters:
thumbnail_url
- Url of the thumbnail for the result- Returns:
InlineQueryResultContact
-
thumbnailWidth
Optional- Parameters:
thumbnail_width
- Thumbnail width- Returns:
InlineQueryResultContact
-
thumbnailHeight
Optional- Parameters:
thumbnail_height
- Thumbnail height- Returns:
InlineQueryResultContact
-