Class SendAnimation
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendAnimation
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull String@Nullable String@Nullable Integer@Nullable Integer@Nullable String@Nullable StringgetThumb()@Nullable IntegergetWidth()voidsetAnimation(@NonNull String animation) voidsetCaption(@Nullable String caption) voidsetDuration(@Nullable Integer duration) voidvoidsetParseMode(@Nullable String parseMode) voidvoidMethods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Field Details
-
SEND_ANIMATION
- See Also:
-
-
Constructor Details
-
SendAnimation
public SendAnimation()
-
-
Method Details
-
getAnimation
- Returns:
- Animation to send.
-
setAnimation
- Parameters:
animation- Animation to send.
-
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
-
getCaption
- Returns:
- Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
-
setCaption
- Parameters:
caption- Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
-
getParseMode
- Returns:
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
setParseMode
- Parameters:
parseMode- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-