public class InputMediaAnimation extends InputMedia
| Constructor and Description |
|---|
InputMediaAnimation(java.lang.String media,
UploadFile thumbnail,
Text caption)
Constructs an input media animation.
|
InputMediaAnimation(java.lang.String media,
UploadFile thumbnail,
Text caption,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer duration)
Constructs an input media animation.
|
InputMediaAnimation(UploadFile media,
UploadFile thumbnail,
Text caption)
Constructs an input media animation.
|
InputMediaAnimation(UploadFile media,
UploadFile thumbnail,
Text caption,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer duration)
Constructs an input media animation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.OptionalInt |
getDuration()
Getter for property
duration. |
java.util.OptionalInt |
getHeight()
Getter for property
height. |
java.util.OptionalInt |
getWidth()
Getter for property
width. |
getCaption, getFile, getMedia, getThumbnailpublic InputMediaAnimation(java.lang.String media,
UploadFile thumbnail,
Text caption,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer duration)
media - file to sendthumbnail - thumbnail of the file sentcaption - caption of the file to be sent, 0-200 characterswidth - animation widthheight - animation heightduration - animation durationpublic InputMediaAnimation(java.lang.String media,
UploadFile thumbnail,
Text caption)
media - file to sendthumbnail - thumbnail of the file sentcaption - caption of the file to be sent, 0-200 characterspublic InputMediaAnimation(UploadFile media, UploadFile thumbnail, Text caption, java.lang.Integer width, java.lang.Integer height, java.lang.Integer duration)
media - file to sendthumbnail - thumbnail of the file sentcaption - caption of the file to be sent, 0-200 characterswidth - animation widthheight - animation heightduration - animation durationpublic InputMediaAnimation(UploadFile media, UploadFile thumbnail, Text caption)
media - file to sendthumbnail - thumbnail of the file sentcaption - caption of the file to be sent, 0-200 characters