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 TypeMethodDescriptionOptionalOptionalgetFiles()For internal use onlybooleanhasFile()For internal use onlyOptionalstarTimestamp(int start_timestamp) OptionalsupportsStreaming(Boolean supports_streaming) OptionalOptionalOptional
-
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
-
-
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:
InputPaidMediaVideo
-
width
Optional- Parameters:
width- Video width- Returns:
InputPaidMediaVideo
-
height
Optional- Parameters:
height- Video height- Returns:
InputPaidMediaVideo
-
duration
Optional- Parameters:
duration- Video duration in seconds- Returns:
InputPaidMediaVideo
-
supportsStreaming
Optional- Parameters:
supports_streaming- Pass True if the uploaded video is suitable for streaming- Returns:
InputPaidMediaVideo
-
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
-
hasFile
public boolean hasFile()For internal use only- Specified by:
hasFilein interfaceInputMedia- Returns:
- boolean
-
getFiles
For internal use only- Specified by:
getFilesin interfaceInputMedia- Returns:
- list of files
-