public static class InlineQueryResultLocation.InlineQueryResultLocationBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultLocation |
build()
Builds the InlineQueryResultLocation object
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
latitude(Double latitude)
*Required*
Sets the latitude to the provided value
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
longitude(Double longitude)
*Required*
Sets the longitude to the provided value
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
thumbHeight(int thumbHeight)
*Optional*
Sets the height of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
thumbUrl(URL thumbUrl)
*Optional*
Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
|
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
thumbWidth(int thumbWidth)
*Optional*
Sets the width of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultLocation.InlineQueryResultLocationBuilder |
title(String title)
*Required*
Sets the title to the provided value
|
public InlineQueryResultLocation.InlineQueryResultLocationBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultLocation.InlineQueryResultLocationBuilder latitude(Double latitude)
latitude - The latitude of the locationpublic InlineQueryResultLocation.InlineQueryResultLocationBuilder longitude(Double longitude)
longitude - THe longitude of the locationpublic InlineQueryResultLocation.InlineQueryResultLocationBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultLocation.InlineQueryResultLocationBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultLocation.InlineQueryResultLocationBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultLocation.InlineQueryResultLocationBuilder thumbUrl(URL thumbUrl)
thumbUrl - The URL of the thumbnail you want to be shown next to the result in the result selection panepublic InlineQueryResultLocation.InlineQueryResultLocationBuilder thumbWidth(int thumbWidth)
thumbUrl(URL)thumbWidth - The width of the thumbnailpublic InlineQueryResultLocation.InlineQueryResultLocationBuilder thumbHeight(int thumbHeight)
thumbUrl(URL)thumbHeight - The height of the thumbnailpublic InlineQueryResultLocation build()
Copyright © 2017. All rights reserved.