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