public static class InlineQueryResultPhoto.InlineQueryResultPhotoBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultPhoto |
build()
Builds the InlineQueryResultPhoto object
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
caption(String caption)
*Optional*
Sets the caption to the provided value.
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
description(String description)
*Optional*
Sets a short description of the result to be shown in the inline result selection pane
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
photoHeight(int photoHeight)
*Optional*
Sets the height of the photo for the result
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
photoUrl(URL photoUrl)
*Required*
Sets the URL of the photo for the result
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
photoWidth(int photoWidth)
*Optional*
Sets the width of the photo for the result
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
thumbUrl(URL thumbUrl)
*Required*
Sets the URL of the thumbnail that should show next to the result in the inline result selection pane
|
InlineQueryResultPhoto.InlineQueryResultPhotoBuilder |
title(String title)
*Optional*
Sets the title to the provided value
|
public InlineQueryResultPhoto.InlineQueryResultPhotoBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder photoUrl(URL photoUrl)
photoUrl - The URL of the photo for the resultpublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder photoWidth(int photoWidth)
photoWidth - The width of the photopublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder photoHeight(int photoHeight)
photoHeight - The height of the photopublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder thumbUrl(URL thumbUrl)
thumbUrl - The URL of the thumbnail you want to be shown next to the result in the result selection panepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder description(String description)
description - The description you want to be shown in the result selection panepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder caption(String caption)
caption - The caption you want the result to havepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultPhoto.InlineQueryResultPhotoBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultPhoto build()
Copyright © 2017. All rights reserved.