Class InputMediaAnimation
java.lang.Object
org.apache.camel.component.telegram.model.InputMedia
org.apache.camel.component.telegram.model.InputMediaAnimation
- All Implemented Interfaces:
Serializable
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
- See Also:
-
Constructor Summary
ConstructorDescriptionInputMediaAnimation
(String media, String caption, String parseMode, Integer width, Integer height, Integer duration) BuildsInputMediaAnimation
instance. -
Method Summary
Methods inherited from class org.apache.camel.component.telegram.model.InputMedia
getCaption, getMedia, getParseMode, getType, setCaption, setMedia, setParseMode, setType
-
Constructor Details
-
InputMediaAnimation
public InputMediaAnimation(String media, String caption, String parseMode, Integer width, Integer height, Integer duration) BuildsInputMediaAnimation
instance.- 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. width.height
- Optional. height.duration
- Optional. duration.
-
InputMediaAnimation
public InputMediaAnimation()
-
-
Method Details
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
getDuration
-
setDuration
-