public class InputMediaAnimation extends InputMedia<InputMediaAnimation>
| Modifier and Type | Field and Description |
|---|---|
static String |
DURATION_FIELD |
static String |
HEIGHT_FIELD |
static String |
THUMB_FIELD |
static String |
WIDTH_FIELD |
CAPTION_FIELD, MEDIA_FIELD, PARSEMODE_FIELD, TYPE_FIELD| Constructor and Description |
|---|
InputMediaAnimation() |
InputMediaAnimation(String media,
String caption) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDuration() |
Integer |
getHeight() |
InputFile |
getThumb() |
String |
getType() |
Integer |
getWidth() |
InputMediaAnimation |
setDuration(Integer duration) |
InputMediaAnimation |
setHeight(Integer height) |
InputMediaAnimation |
setThumb(InputFile thumb) |
InputMediaAnimation |
setWidth(Integer width) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
getCaption, getMedia, getMediaFile, getMediaName, getNewMediaStream, getParseMode, isNewMedia, setCaption, setMedia, setMedia, setMedia, setParseModepublic static final String WIDTH_FIELD
public static final String HEIGHT_FIELD
public static final String DURATION_FIELD
public static final String THUMB_FIELD
public Integer getWidth()
public InputMediaAnimation setWidth(Integer width)
public Integer getHeight()
public InputMediaAnimation setHeight(Integer height)
public Integer getDuration()
public InputMediaAnimation setDuration(Integer duration)
public InputFile getThumb()
public InputMediaAnimation setThumb(InputFile thumb)
public String getType()
getType in class InputMedia<InputMediaAnimation>public void validate()
throws TelegramApiValidationException
Validablevalidate in interface Validablevalidate in class InputMedia<InputMediaAnimation>TelegramApiValidationException - If any mandatory field is emptypublic String toString()
toString in class InputMedia<InputMediaAnimation>Copyright © 2019. All rights reserved.