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