Class InlineQueryResultGif
java.lang.Object
org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultGif
- All Implemented Interfaces:
Serializable,BotApiObject,Validable,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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResult
VALIDTHUMBTYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Use {#getThumbnailUrl()}voidsetThumbUrl(String thumbUrl) Deprecated.Use {#setThumbnailUrl(String)}voidsetThumbUrlType(String thumbUrlType) Deprecated.Use {#setThumbnailUrl(String)}voidvalidate()Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
InlineQueryResultGif
public InlineQueryResultGif()
-
-
Method Details
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
getThumbUrl
Deprecated.Use {#getThumbnailUrl()} -
setThumbUrl
Deprecated.Use {#setThumbnailUrl(String)} -
getThumbUrlType
Deprecated.Use {#getThumbnailUrl()} -
setThumbUrlType
Deprecated.Use {#setThumbnailUrl(String)}
-
#getThumbnailUrl()}