public static class InlineQueryResultContact.InlineQueryResultContactBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultContact |
build()
Builds the InlineQueryResultContact object
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
firstName(String firstName)
*Required*
Sets the first name of the contact to the provided value
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
lastName(String lastName)
*Optional*
Sets the last name of the contact to the provided value
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
phoneNumber(String phoneNumber)
*Required*
Sets the phone number of the contact to the provided value
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
thumbHeight(int thumbHeight)
*Optional*
Sets the height of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultContact.InlineQueryResultContactBuilder |
thumbUrl(URL thumbUrl)
*Optional*
Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
|
InlineQueryResultContact.InlineQueryResultContactBuilder |
thumbWidth(int thumbWidth)
*Optional*
Sets the width of the thumbnail at the previously provided URL through
thumbUrl(URL) |
public InlineQueryResultContact.InlineQueryResultContactBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultContact.InlineQueryResultContactBuilder phoneNumber(String phoneNumber)
phoneNumber - The phone number of the contactpublic InlineQueryResultContact.InlineQueryResultContactBuilder firstName(String firstName)
firstName - The first name of the contactpublic InlineQueryResultContact.InlineQueryResultContactBuilder lastName(String lastName)
lastName - The last name of the contactpublic InlineQueryResultContact.InlineQueryResultContactBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultContact.InlineQueryResultContactBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultContact.InlineQueryResultContactBuilder thumbUrl(URL thumbUrl)
thumbUrl - The URL of the thumbnail you want to be shown next to the result in the result selection panepublic InlineQueryResultContact.InlineQueryResultContactBuilder thumbWidth(int thumbWidth)
thumbUrl(URL)thumbWidth - The width of the thumbnailpublic InlineQueryResultContact.InlineQueryResultContactBuilder thumbHeight(int thumbHeight)
thumbUrl(URL)thumbHeight - The height of the thumbnailpublic InlineQueryResultContact build()
Copyright © 2017. All rights reserved.