Class InlineQueryResultCachedGif
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedGif
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,InputBotApiObject
,Validable
,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedGif
public class InlineQueryResultCachedGif extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedGif()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCaption()
String
getGifFileId()
String
getId()
InputMessageContent
getInputMessageContent()
String
getParseMode()
InlineKeyboardMarkup
getReplyMarkup()
String
getThumbUrl()
String
getThumbUrlType()
String
getTitle()
String
getType()
InlineQueryResultCachedGif
setCaption(String caption)
InlineQueryResultCachedGif
setGifFileId(String gifFileId)
InlineQueryResultCachedGif
setId(String id)
InlineQueryResultCachedGif
setInputMessageContent(InputMessageContent inputMessageContent)
InlineQueryResultCachedGif
setParseMode(String parseMode)
InlineQueryResultCachedGif
setReplyMarkup(InlineKeyboardMarkup replyMarkup)
InlineQueryResultCachedGif
setThumbUrl(String thumbUrl)
InlineQueryResultCachedGif
setThumbUrlType(String thumbUrlType)
InlineQueryResultCachedGif
setTitle(String title)
String
toString()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedGif setId(String id)
-
getGifFileId
public String getGifFileId()
-
setGifFileId
public InlineQueryResultCachedGif setGifFileId(String gifFileId)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultCachedGif setTitle(String title)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedGif setCaption(String caption)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedGif setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedGif setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedGif setParseMode(String parseMode)
-
getThumbUrl
public String getThumbUrl()
-
setThumbUrl
public InlineQueryResultCachedGif setThumbUrl(String thumbUrl)
-
getThumbUrlType
public String getThumbUrlType()
-
setThumbUrlType
public InlineQueryResultCachedGif setThumbUrlType(String thumbUrlType)
-
validate
public void validate() throws TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-