Class SendVideo
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendText
io.micronaut.chatbots.telegram.api.send.SendCaption
io.micronaut.chatbots.telegram.api.send.SendVideo
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable Integer@Nullable Boolean@Nullable StringgetThumb()@NonNull StringgetVideo()@Nullable IntegergetWidth()voidsetDuration(@Nullable Integer duration) voidvoidsetSupportsStreaming(@Nullable Boolean supportsStreaming) voidvoidvoidMethods inherited from class io.micronaut.chatbots.telegram.api.send.SendCaption
getCaption, setCaptionMethods inherited from class io.micronaut.chatbots.telegram.api.send.SendText
getParseMode, setParseModeMethods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Field Details
-
SEND_VIDEO
- See Also:
-
-
Constructor Details
-
SendVideo
public SendVideo()
-
-
Method Details
-
getVideo
- Returns:
- Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data.
-
setVideo
- Parameters:
video- Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data.
-
getDuration
- Returns:
- Duration of sent video in seconds.
-
setDuration
- Parameters:
duration- Duration of sent video in seconds.
-
getWidth
- Returns:
- Video width.
-
setWidth
- Parameters:
width- Video width.
-
getHeight
- Returns:
- Video height.
-
setHeight
- Parameters:
height- Video height.
-
getThumb
- Returns:
- Thumbnail of the file sent
-
setThumb
- Parameters:
thumb- Thumbnail of the file sent
-
getSupportsStreaming
- Returns:
- Pass True, if the uploaded video is suitable for streaming.
-
setSupportsStreaming
- Parameters:
supportsStreaming- Pass True, if the uploaded video is suitable for streaming.
-