Class InlineQueryResultCachedMpeg4Gif
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultCachedMpeg4Gif>
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedMpeg4Gif
- All Implemented Interfaces:
InlineQueryResult,Serializable
public class InlineQueryResultCachedMpeg4Gif
extends InlineQueryMediaResult<InlineQueryResultCachedMpeg4Gif>
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
By default, this animated MPEG-4 file will be sent by the user with an optional caption.
Alternatively, you can use
InputTextMessageContent to send a message with the 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
-
mpeg4FileId
-
title
-
showCaptionAboveMedia
-
-
Constructor Details
-
InlineQueryResultCachedMpeg4Gif
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesmpeg4FileId- A valid file identifier for the MPEG4 file
-
-
Method Details
-
setTitle
Optional- Parameters:
title- Title for the result- Returns:
InlineQueryResultCachedMpeg4Gif
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultCachedMpeg4Gif
-