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 SummaryConstructorsConstructorDescriptionSendAnimation(Object chat_id, File animation, Api api) RequiredSendAnimation(Object chat_id, String animation, Api api) Required
- 
Method SummaryModifier 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.SendBuilderallowPaidBroadcast, businessConnectionId, directMessagesTopicId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters, suggestedPostParametersMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
SendAnimation
- 
SendAnimation
 
- 
- 
Method Details- 
captionOptional- Parameters:
- caption- Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing
- Returns:
- SendAnimation
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- A list of special entities that appear in the caption, which can be specified instead of parse_mode
- Returns:
- SendAnimation
 
- 
hasSpoilerOptional- Parameters:
- has_spoiler- Pass True if the animation needs to be covered with a spoiler animation
- Returns:
- SendAnimation
 
- 
thumbnailOptional- 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
 
- 
thumbnailOptional- 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
 
- 
widthOptional- Parameters:
- width- Animation width
- Returns:
- SendAnimation
 
- 
heightOptional- Parameters:
- height- Animation height
- Returns:
- SendAnimation
 
- 
duration
- 
showCaptionAboveMediaOptional- Parameters:
- show_caption_above_media- Pass True, if the caption must be shown above the message media
- Returns:
- SendAnimation
 
 
-