Class InlineQueryResultCachedVideo
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultCachedVideo>
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedVideo
- All Implemented Interfaces:
InlineQueryResult,Serializable
public class InlineQueryResultCachedVideo
extends InlineQueryMediaResult<InlineQueryResultCachedVideo>
Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an 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 video.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultCachedVideo(String id, String videoFileId, String title) Required -
Method Summary
Modifier and TypeMethodDescriptionsetDescription(String description) OptionalsetShowCaptionAboveMedia(Boolean showCaptionAboveMedia) OptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
videoFileId
-
title
-
description
-
showCaptionAboveMedia
-
-
Constructor Details
-
InlineQueryResultCachedVideo
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesvideoFileId- A valid file identifier for the video filetitle- Title for the result
-
-
Method Details
-
setDescription
Optional- Parameters:
description- Short description of the result- Returns:
InlineQueryResultCachedVideo
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultCachedVideo
-