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 TypeMethodDescriptionOptional.Optional.setDuration(Integer duration) Optional.setHasSpoiler(Boolean hasSpoiler) Optional.Optional.setStartTimestamp(Integer startTimestamp) Optional.setSupportsStreaming(Boolean supportsStreaming) Optional.setThumbnail(File thumbnail) Optional.setThumbnail(String thumbnail) Optional.Optional.Methods 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
Required- Parameters:
media- File to send. Pass an object of File to upload from your local machine.
-
-
Method Details
-
setThumbnail
Optional.- Parameters:
thumbnail- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side.
-
setThumbnail
Optional.- Parameters:
thumbnail- Thumbnail file to upload from your local machine
-
setWidth
Optional.- Parameters:
width- Video width
-
setHeight
Optional.- Parameters:
height- Video height
-
setDuration
Optional.- Parameters:
duration- Video duration in seconds
-
setHasSpoiler
Optional.- Parameters:
hasSpoiler- Pass True if the video needs to be covered with a spoiler animation
-
setSupportsStreaming
Optional.- Parameters:
supportsStreaming- Pass True if the uploaded video is suitable for streaming
-
setCover
Optional.- Parameters:
cover- Cover for the video in the message.
-
setCover
Optional.- Parameters:
cover- Cover file to upload from your local machine
-
setStartTimestamp
Optional.- Parameters:
startTimestamp- Start timestamp for the video in the message
-