Class InputMediaAnimation
java.lang.Object
org.telegram.telegrambots.meta.api.objects.media.InputMedia
org.telegram.telegrambots.meta.api.objects.media.InputMediaAnimation
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
- Version:
- 4.0.0 Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
- Author:
- Ruben Bermudez
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class org.telegram.telegrambots.meta.api.objects.media.InputMedia
CAPTION_FIELD, CAPTIONENTITIES_FIELD, MEDIA_FIELD, PARSEMODE_FIELD, TYPE_FIELD
-
Constructor Summary
ConstructorDescriptionInputMediaAnimation
(@NonNull String media) InputMediaAnimation
(@NonNull String media, String caption, String parseMode, List<MessageEntity> entities, boolean isNewMedia, String mediaName, File newMediaFile, InputStream newMediaStream, Integer width, Integer height, Integer duration, InputFile thumbnail, Boolean hasSpoiler) -
Method Summary
Methods inherited from class org.telegram.telegrambots.meta.api.objects.media.InputMedia
isNewMedia, setMedia, setMedia, setMedia
-
Field Details
-
WIDTH_FIELD
- See Also:
-
HEIGHT_FIELD
- See Also:
-
DURATION_FIELD
- See Also:
-
THUMBNAIL_FIELD
- See Also:
-
HASSPOILER_FIELD
- See Also:
-
-
Constructor Details
-
InputMediaAnimation
public InputMediaAnimation() -
InputMediaAnimation
-
InputMediaAnimation
-
-
Method Details
-
getType
- Specified by:
getType
in classInputMedia
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Overrides:
validate
in classInputMedia
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
getThumb
Deprecated.Use {#getThumbnail()
} -
setThumb
Deprecated.Use {#setThumbnail(InputFile)
}
-
#getThumbnail()
}