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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Integer
@Nullable Integer
@Nullable Boolean
@Nullable String
getThumb()
@NonNull String
getVideo()
@Nullable Integer
getWidth()
void
setDuration
(@Nullable Integer duration) void
void
setSupportsStreaming
(@Nullable Boolean supportsStreaming) void
void
void
Methods inherited from class io.micronaut.chatbots.telegram.api.send.SendCaption
getCaption, setCaption
Methods inherited from class io.micronaut.chatbots.telegram.api.send.SendText
getParseMode, setParseMode
Methods 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.
-