Class InlineQueryResultMpeg4Gif
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultMpeg4Gif
- All Implemented Interfaces:
- InlineQueryResult,- Serializable
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
 By default, this animated MPEG-4 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 SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructorsConstructorDescriptionInlineQueryResultMpeg4Gif(String id, String mpeg4_url, String thumbnail_url) Required
- 
Method SummaryModifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] caption_entities) OptionalinputMessageContent(InputTextMessageContent input_message_content) Optionalmpeg4Duration(int mpeg4_duration) Optionalmpeg4Height(int mpeg4_height) Optionalmpeg4Width(int mpeg4_width) 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- 
InlineQueryResultMpeg4Gif
 
- 
- 
Method Details- 
mpeg4WidthOptional- Parameters:
- mpeg4_width- Video width
- Returns:
- InlineQueryResultMpeg4Gif
 
- 
mpeg4HeightOptional- Parameters:
- mpeg4_height- Video height
- Returns:
- InlineQueryResultMpeg4Gif
 
- 
mpeg4DurationOptional- Parameters:
- mpeg4_duration- Video duration in seconds
- Returns:
- InlineQueryResultMpeg4Gif
 
- 
thumbnailMimeTypeOptional- 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:
- InlineQueryResultMpeg4Gif
 
- 
showCaptionAboveMediaOptional- Parameters:
- show_caption_above_media- Pass True, if the caption must be shown above the message media
- Returns:
- InlineQueryResultMpeg4Gif
 
- 
titleOptional- Parameters:
- title- Title for the result
- Returns:
- InlineQueryResultMpeg4Gif
 
- 
inputMessageContentOptional- Parameters:
- input_message_content- Content of the message to be sent instead of the media(photo, audio, voice, etc)
- Returns:
- T
 
- 
replyMarkupOptional- Parameters:
- keyboard-- Inline keyboardattached to the message
- Returns:
- T
 
- 
captionOptional- Parameters:
- caption- Caption of the photo to be sent, 0-1024 characters after entities parsing
- Returns:
- T
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- List of special entities that appear in the caption, which can be specified instead of- parseMode(io.github.natanimn.telebof.enums.ParseMode)
- Returns:
- T
 
- 
parseModeOptional- Parameters:
- parse_mode- Mode for parsing entities in the caption
- Returns:
- T
 
 
-