Class InlineQueryResultMpeg4Gif
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultMpeg4Gif>
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.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
ConstructorsConstructorDescriptionInlineQueryResultMpeg4Gif(String id, String mpeg4Url, String thumbnailUrl) Required -
Method Summary
Modifier and TypeMethodDescriptionsetMpeg4Duration(Integer mpeg4Duration) OptionalsetMpeg4Height(Integer mpeg4Height) OptionalsetMpeg4Width(Integer mpeg4Width) OptionalsetShowCaptionAboveMedia(Boolean showCaptionAboveMedia) OptionalsetThumbnailMimeType(String thumbnailMimeType) OptionalOptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
mpeg4Url
-
thumbnailMimeType
-
mpeg4Width
-
mpeg4Height
-
mpeg4Duration
-
showCaptionAboveMedia
-
thumbnailUrl
-
title
-
-
Constructor Details
-
InlineQueryResultMpeg4Gif
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesmpeg4Url- A valid URL for the MPEG4 filethumbnailUrl- URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
-
-
Method Details
-
setMpeg4Width
Optional- Parameters:
mpeg4Width- Video width- Returns:
InlineQueryResultMpeg4Gif
-
setMpeg4Height
Optional- Parameters:
mpeg4Height- Video height- Returns:
InlineQueryResultMpeg4Gif
-
setMpeg4Duration
Optional- Parameters:
mpeg4Duration- Video duration in seconds- Returns:
InlineQueryResultMpeg4Gif
-
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:
InlineQueryResultMpeg4Gif
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultMpeg4Gif
-
setTitle
Optional- Parameters:
title- Title for the result- Returns:
InlineQueryResultMpeg4Gif
-