public static class InlineQueryResultDocument.InlineQueryResultDocumentBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultDocument |
build()
Builds the InlineQueryResultDocument object
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
caption(String caption)
*Optional*
Sets the caption to the provided value.
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
description(String description)
*Optional*
Sets a short description of the result to be shown in the inline result selection pane
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
documentUrl(URL documentUrl)
*Required*
Sets the URL of the document for the result
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
mimeType(String mimeType)
*Required*
Sets the mime type of the document file.
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
thumbHeight(int thumbHeight)
*Optional*
Sets the height of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
thumbUrl(URL thumbUrl)
*Optional*
Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
|
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
thumbWidth(int thumbWidth)
*Optional*
Sets the width of the thumbnail at the previously provided URL through
thumbUrl(URL) |
InlineQueryResultDocument.InlineQueryResultDocumentBuilder |
title(String title)
*Required*
Sets the title to the provided value
|
public InlineQueryResultDocument.InlineQueryResultDocumentBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder caption(String caption)
caption - The caption you want the result to havepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder documentUrl(URL documentUrl)
documentUrl - The URL of the document for the resultpublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder mimeType(String mimeType)
mimeType - The mimetype of the document being sent for this resultpublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder description(String description)
description - The description you want to be shown in the result selection panepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder thumbUrl(URL thumbUrl)
thumbUrl - The URL of the thumbnail you want to be shown next to the result in the result selection panepublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder thumbWidth(int thumbWidth)
thumbUrl(URL)thumbWidth - The width of the thumbnailpublic InlineQueryResultDocument.InlineQueryResultDocumentBuilder thumbHeight(int thumbHeight)
thumbUrl(URL)thumbHeight - The height of the thumbnailpublic InlineQueryResultDocument build()
Copyright © 2017. All rights reserved.