Class InputMediaVideo
java.lang.Object
io.github.natanimn.telebof.types.input.InputMediaBuilder<InputMediaVideo>
io.github.natanimn.telebof.types.input.InputMediaVideo
- All Implemented Interfaces:
InputMedia
,Serializable
Represents a video to be sent.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptionalOptionalduration
(int duration) OptionalhasSpoiler
(boolean has_spoiler) Optionalheight
(int height) OptionalstarTimestamp
(int start_timestamp) OptionalsupportsStreaming
(boolean supports_streaming) OptionalOptionalwidth
(int width) OptionalMethods inherited from class io.github.natanimn.telebof.types.input.InputMediaBuilder
caption, captionEntities, getFiles, hasFile, parseMode
-
Constructor Details
-
InputMediaVideo
Required- Parameters:
media
- File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), or pass an HTTP URL for Telegram to get a file from the Internet.
-
InputMediaVideo
-
-
Method Details
-
thumbnail
Optional- Parameters:
thumbnail
- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320- Returns:
InputMediaVideo
-
width
Optional- Parameters:
width
- video width- Returns:
InputMediaVideo
-
height
Optional- Parameters:
height
- Video height- Returns:
InputMediaVideo
-
duration
Optional- Parameters:
duration
- Video duration in seconds- Returns:
InputMediaVideo
-
supportsStreaming
Optional- Parameters:
supports_streaming
- Pass True if the uploaded video is suitable for streaming- Returns:
InputMediaVideo
-
hasSpoiler
Optional- Parameters:
has_spoiler
- Pass True if the video needs to be covered with a spoiler animation- Returns:
InputMediaVideo
-
cover
Optional- Parameters:
cover
- Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended)- Returns:
InputMediaVideo
-
cover
Optional- Parameters:
cover
- Cover for the video in the message.- Returns:
InputMediaVideo
-
starTimestamp
Optional- Parameters:
start_timestamp
- Start timestamp for the video in the message- Returns:
InputMediaVideo
-