public static class InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultCachedDocument |
build()
Builds the InlineQueryResultCachedDocument object
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
caption(String caption)
*Optional*
Sets the caption to the provided value.
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
description(String description)
*Optional*
Sets the descrption to the provided value
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
documentFileId(String documentFileId)
*Required*
Sets the ID of the cached document file on the telegram servers that you want this result to use
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder |
title(String title)
*Optional*
Sets the title to the provided value
|
public InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder caption(String caption)
caption - The caption you want the result to havepublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder documentFileId(String documentFileId)
documentFileId - The ID of the cached document file you want to use from the telegram serverspublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder description(String description)
description - The descrption for the resultpublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultCachedDocument.InlineQueryResultCachedDocumentBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultCachedDocument build()
Copyright © 2017. All rights reserved.