Class InlineQueryResultGif
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultGif>
io.github.natanimn.telebof.types.inline.InlineQueryResultGif
- All Implemented Interfaces:
InlineQueryResult,Serializable
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
InlineQueryMediaResult.setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the animation.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integerprivate Integerprivate Stringprivate Integerprivate Booleanprivate Stringprivate Stringprivate StringFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultGif(String id, String gifUrl, String thumbnailUrl) Required -
Method Summary
Modifier and TypeMethodDescriptionsetGifDuration(Integer gifDuration) OptionalsetGifHeight(Integer gifHeight) OptionalsetGifWidth(Integer gifWidth) OptionalsetShowCaptionAboveMedia(Boolean showCaptionAboveMedia) OptionalsetThumbnailMimeType(String thumbnailMimeType) OptionalOptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
gifUrl
-
thumbnailMimeType
-
gifWidth
-
gifHeight
-
gifDuration
-
showCaptionAboveMedia
-
thumbnailUrl
-
title
-
-
Constructor Details
-
InlineQueryResultGif
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesgifUrl- A valid URL for the GIF filethumbnailUrl- URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
-
-
Method Details
-
setGifWidth
Optional- Parameters:
gifWidth- Width of the GIF- Returns:
InlineQueryResultGif
-
setGifHeight
Optional- Parameters:
gifHeight- Height of the GIF- Returns:
InlineQueryResultGif
-
setGifDuration
Optional- Parameters:
gifDuration- Duration of the GIF in seconds- Returns:
InlineQueryResultGif
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultGif
-
setThumbnailMimeType
Optional- Parameters:
thumbnailMimeType- MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”- Returns:
InlineQueryResultGif
-
setTitle
Optional- Parameters:
title- Title for the result- Returns:
InlineQueryResultGif
-