Class InputMediaVideo
- java.lang.Object
-
- org.apache.camel.component.telegram.model.InputMedia
-
- org.apache.camel.component.telegram.model.InputMediaVideo
-
- All Implemented Interfaces:
Serializable
public class InputMediaVideo extends InputMedia
Represents a video to be sent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InputMediaVideo()InputMediaVideo(String media, String caption, String parseMode, Integer width, Integer height, Integer duration, String supportsStreaming)BuildsInputMediaVideoinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetDuration()IntegergetHeight()StringgetSupportsStreaming()IntegergetWidth()voidsetDuration(Integer duration)voidsetHeight(Integer height)voidsetSupportsStreaming(String supportsStreaming)voidsetWidth(Integer width)-
Methods inherited from class org.apache.camel.component.telegram.model.InputMedia
getCaption, getMedia, getParseMode, getType, setCaption, setMedia, setParseMode, setType
-
-
-
-
Constructor Detail
-
InputMediaVideo
public InputMediaVideo(String media, String caption, String parseMode, Integer width, Integer height, Integer duration, String supportsStreaming)
BuildsInputMediaVideoinstance.- Parameters:
media- File to send. Pass a file_id to send a file that exists on the Telegram servers, or pass an HTTP URL for Telegram to get a file from the Internetcaption- Optional. Caption of the video to be sent, 0-1024 charactersparseMode- Optional. Send 'Markdown' or 'HTML', if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.width- Optional. Video widthheight- Optional. Video heightduration- Optional. Video durationsupportsStreaming- Optional. Pass True, if the uploaded video is suitable for streaming
-
InputMediaVideo
public InputMediaVideo()
-
-
Method Detail
-
getWidth
public Integer getWidth()
-
setWidth
public void setWidth(Integer width)
-
getHeight
public Integer getHeight()
-
setHeight
public void setHeight(Integer height)
-
getDuration
public Integer getDuration()
-
setDuration
public void setDuration(Integer duration)
-
getSupportsStreaming
public String getSupportsStreaming()
-
setSupportsStreaming
public void setSupportsStreaming(String supportsStreaming)
-
-