public static class InlineQueryResultArticle.InlineQueryResultArticleBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultArticle |
build()
Builds the InlineQueryResultArticle object
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
description(String description)
*Optional*
Sets a short description of the result to be shown in the inline result selection pane
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
hideUrl(boolean hideUrl)
*Optional*
Sets whether to hide the URL when the message is sent.
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Required*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
thumbHeight(int thumbHeight)
*Optional*
Sets the height of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
thumbUrl(URL thumbUrl)
*Optional*
Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
thumbWidth(int thumbWidth)
*Optional*
Sets the width of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
title(String title)
*Required*
Sets the title to the provided value
|
InlineQueryResultArticle.InlineQueryResultArticleBuilder |
url(URL url)
*Optional*
Sets the URL of the result
|
public InlineQueryResultArticle.InlineQueryResultArticleBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultArticle.InlineQueryResultArticleBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder url(URL url)
url - The URL of the resultpublic InlineQueryResultArticle.InlineQueryResultArticleBuilder hideUrl(boolean hideUrl)
hideUrl - True to hide the URL, otherwise Falsepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder description(String description)
description - The description you want to be shown in the result selection panepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder thumbUrl(URL thumbUrl)
thumbUrl - The URL of the thumbnail you want to be shown next to the result in the result selection panepublic InlineQueryResultArticle.InlineQueryResultArticleBuilder thumbWidth(int thumbWidth)
thumbUrl(URL)thumbWidth - The width of the thumbnailpublic InlineQueryResultArticle.InlineQueryResultArticleBuilder thumbHeight(int thumbHeight)
thumbUrl(URL)thumbHeight - The height of the thumbnailpublic InlineQueryResultArticle build()
Copyright © 2017. All rights reserved.