Class InlineQueryResultGif
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultGif
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultGif extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultGif()
-
Method Summary
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultGif setId(String id)
-
getGifUrl
public String getGifUrl()
-
setGifUrl
public InlineQueryResultGif setGifUrl(String gifUrl)
-
getGifWidth
public Integer getGifWidth()
-
setGifWidth
public InlineQueryResultGif setGifWidth(Integer gifWidth)
-
getGifHeight
public Integer getGifHeight()
-
setGifHeight
public InlineQueryResultGif setGifHeight(Integer gifHeight)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultGif setThumbUrl(String thumbUrl)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultGif setTitle(String title)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultGif setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultGif setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultGif setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getGifDuration
public Integer getGifDuration()
-
setGifDuration
public InlineQueryResultGif setGifDuration(Integer gifDuration)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultGif setParseMode(String parseMode)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-