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 SummaryConstructors
- 
Method SummaryModifier 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.InputMediaBuildercaption, captionEntities, getFiles, hasFile, parseMode
- 
Constructor Details- 
InputMediaVideoRequired- 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- 
thumbnailOptional- 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
 
- 
widthOptional- Parameters:
- width- video width
- Returns:
- InputMediaVideo
 
- 
heightOptional- Parameters:
- height- Video height
- Returns:
- InputMediaVideo
 
- 
durationOptional- Parameters:
- duration- Video duration in seconds
- Returns:
- InputMediaVideo
 
- 
supportsStreamingOptional- Parameters:
- supports_streaming- Pass True if the uploaded video is suitable for streaming
- Returns:
- InputMediaVideo
 
- 
hasSpoilerOptional- Parameters:
- has_spoiler- Pass True if the video needs to be covered with a spoiler animation
- Returns:
- InputMediaVideo
 
- 
coverOptional- 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
 
- 
coverOptional- Parameters:
- cover- Cover for the video in the message.
- Returns:
- InputMediaVideo
 
- 
starTimestampOptional- Parameters:
- start_timestamp- Start timestamp for the video in the message
- Returns:
- InputMediaVideo
 
 
-