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 SummaryConstructorsConstructorDescriptionInputPaidMediaVideo(File media) RequiredInputPaidMediaVideo(String media) Required
- 
Method SummaryModifier and TypeMethodDescriptionOptionalOptionalgetFiles()For internal use onlybooleanhasFile()For internal use onlyOptionalstarTimestamp(int start_timestamp) OptionalsupportsStreaming(Boolean supports_streaming) OptionalOptionalOptional
- 
Constructor Details- 
InputPaidMediaVideoRequired- 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- 
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:
- InputPaidMediaVideo
 
- 
widthOptional- Parameters:
- width- Video width
- Returns:
- InputPaidMediaVideo
 
- 
heightOptional- Parameters:
- height- Video height
- Returns:
- InputPaidMediaVideo
 
- 
durationOptional- Parameters:
- duration- Video duration in seconds
- Returns:
- InputPaidMediaVideo
 
- 
supportsStreamingOptional- Parameters:
- supports_streaming- Pass True if the uploaded video is suitable for streaming
- Returns:
- InputPaidMediaVideo
 
- 
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
 
- 
hasFilepublic boolean hasFile()For internal use only- Specified by:
- hasFilein interface- InputMedia
- Returns:
- boolean
 
- 
getFilesFor internal use only- Specified by:
- getFilesin interface- InputMedia
- Returns:
- list of files
 
 
-