Class InlineQueryResultCachedGif
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultCachedGif>
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedGif
- All Implemented Interfaces:
InlineQueryResult,Serializable
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
InlineQueryMediaResult.inputMessageContent to send a message with specified content instead of the animation.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetShowCaptionAboveMedia(Boolean showCaptionAboveMedia) OptionalOptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
gifFileId
-
title
-
showCaptionAboveMedia
-
-
Constructor Details
-
InlineQueryResultCachedGif
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesgifFileId- A valid file identifier for the GIF file
-
-
Method Details
-
setTitle
Optional- Parameters:
title- Title for the result- Returns:
InlineQueryResultCachedGif
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultCachedGif
-