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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@Nullable String
@Nullable Integer
@Nullable Integer
@Nullable String
@Nullable String
getThumb()
@Nullable Integer
getWidth()
void
setAnimation
(@NonNull String animation) void
setCaption
(@Nullable String caption) void
setDuration
(@Nullable Integer duration) void
void
setParseMode
(@Nullable String parseMode) void
void
Methods 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.
-