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