Class InlineQueryResultGif
java.lang.Object
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.inputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent)
to send a message with the specified content instead of the animation.- Since:
- 3 March 2025
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultGif
(String id, String gif_url, String thumbnail_url) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities
(MessageEntity[] caption_entities) OptionalgifDuration
(int gif_duration) OptionalgifHeight
(int gif_height) OptionalgifWidth
(int gif_width) OptionalinputMessageContent
(InputTextMessageContent input_message_content) OptionalOptionalreplyMarkup
(InlineKeyboardMarkup keyboard) OptionalshowCaptionAboveMedia
(boolean show_caption_above_media) OptionalthumbnailMimeType
(String thumbnail_mime_type) OptionalOptional
-
Field Details
-
type
-
id
-
caption
-
parse_mode
-
caption_entities
-
input_message_content
-
reply_markup
-
-
Constructor Details
-
InlineQueryResultGif
-
-
Method Details
-
gifWidth
Optional- Parameters:
gif_width
- Width of the GIF- Returns:
InlineQueryResultGif
-
gifHeight
Optional- Parameters:
gif_height
- Height of the GIF- Returns:
InlineQueryResultGif
-
gifDuration
Optional- Parameters:
gif_duration
- Duration of the GIF in seconds- Returns:
InlineQueryResultGif
-
showCaptionAboveMedia
Optional- Parameters:
show_caption_above_media
- Pass True, if the caption must be shown above the message media- Returns:
- @link InlineQueryResultGif}
-
thumbnailMimeType
Optional- Parameters:
thumbnail_mime_type
- MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”- Returns:
InlineQueryResultGif
-
title
Optional- Parameters:
title
- Title for the result- Returns:
InlineQueryResultGif
-
inputMessageContent
Optional- Parameters:
input_message_content
- Content of the message to be sent instead of the media(photo, audio, voice, etc)- Returns:
T
-
replyMarkup
Optional- Parameters:
keyboard
-Inline keyboard
attached to the message- Returns:
T
-
caption
Optional- Parameters:
caption
- Caption of the photo to be sent, 0-1024 characters after entities parsing- Returns:
T
-
captionEntities
Optional- Parameters:
caption_entities
- List of special entities that appear in the caption, which can be specified instead ofparseMode(io.github.natanimn.telebof.enums.ParseMode)
- Returns:
T
-
parseMode
Optional- Parameters:
parse_mode
- Mode for parsing entities in the caption- Returns:
T
-