Class SendAnimation
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendAnimation, Message>
io.github.natanimn.telebof.requests.send.SendBuilder<SendAnimation, Message>
io.github.natanimn.telebof.requests.send.SendAnimation
SendAnimation class. Returns
Message
on success.- Since:
- 3 March 2025
-
Constructor Summary
ConstructorsConstructorDescriptionSendAnimation
(Object chat_id, File animation, Api api) RequiredSendAnimation
(Object chat_id, String animation, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities
(MessageEntity[] caption_entities) Optionalduration
(int duration) OptionalhasSpoiler
(boolean has_spoiler) Optionalheight
(int height) OptionalshowCaptionAboveMedia
(boolean show_caption_above_media) OptionalOptionalOptionalwidth
(int width) OptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilder
allowPaidBroadcast, businessConnectionId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters
Methods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendAnimation
-
SendAnimation
-
-
Method Details
-
caption
Optional- Parameters:
caption
- Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing- Returns:
SendAnimation
-
captionEntities
Optional- Parameters:
caption_entities
- A list of special entities that appear in the caption, which can be specified instead of parse_mode- Returns:
SendAnimation
-
hasSpoiler
Optional- Parameters:
has_spoiler
- Pass True if the animation needs to be covered with a spoiler animation- Returns:
SendAnimation
-
thumbnail
Optional- Parameters:
thumbnail
- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Thumbnails can't be reused and can be only uploaded as a new file- Returns:
SendAnimation
-
thumbnail
Optional- Parameters:
thumbnail
- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Thumbnails can't be reused and can be only uploaded as a new file- Returns:
SendAnimation
-
width
Optional- Parameters:
width
- Animation width- Returns:
SendAnimation
-
height
Optional- Parameters:
height
- Animation height- Returns:
SendAnimation
-
duration
-
showCaptionAboveMedia
Optional- Parameters:
show_caption_above_media
- Pass True, if the caption must be shown above the message media- Returns:
SendAnimation
-