Class InputPaidMediaVideo
java.lang.Object
io.github.natanimn.telebof.types.input.InputPaidMediaVideo
- All Implemented Interfaces:
InputMedia,InputPaidMedia,Serializable
The paid media to send is a video.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputPaidMediaVideo(File media) RequiredInputPaidMediaVideo(String media) Required -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()Used only for internal purposebooleanhasFile()Used only for internal purposeOptional.Optional.setDuration(Integer duration) Optional.Optional.setStartTimestamp(Integer startTimestamp) Optional.setSupportsStreaming(Boolean supportsStreaming) Optional.setThumbnail(File thumbnail) Optional.setThumbnail(String thumbnail) Optional.Optional.
-
Constructor Details
-
InputPaidMediaVideo
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.
-
InputPaidMediaVideo
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
-
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
-
hasFile
public boolean hasFile()Description copied from interface:InputMediaUsed only for internal purpose- Specified by:
hasFilein interfaceInputMedia- Returns:
- boolean
-
getFiles
Description copied from interface:InputMediaUsed only for internal purpose- Specified by:
getFilesin interfaceInputMedia- Returns:
- boolean
-