public static class TdApi.Animation extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
TdApi.File |
animation
File containing the animation.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the animation, in seconds; as defined by the sender.
|
java.lang.String |
fileName
Original name of the file; as defined by the sender.
|
boolean |
hasStickers
True, if stickers were added to the animation.
|
int |
height
Height of the animation.
|
java.lang.String |
mimeType
MIME type of the file, usually "image/gif" or "video/mp4".
|
TdApi.Minithumbnail |
minithumbnail
Animation minithumbnail; may be null.
|
TdApi.Thumbnail |
thumbnail
Animation thumbnail in JPEG or MPEG4 format; may be null.
|
int |
width
Width of the animation.
|
Constructor and Description |
---|
Animation()
Describes an animation file.
|
Animation(int duration,
int width,
int height,
java.lang.String fileName,
java.lang.String mimeType,
boolean hasStickers,
TdApi.Minithumbnail minithumbnail,
TdApi.Thumbnail thumbnail,
TdApi.File animation)
Describes an animation file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int duration
public int width
public int height
public java.lang.String fileName
public java.lang.String mimeType
public boolean hasStickers
@Nullable public TdApi.Minithumbnail minithumbnail
@Nullable public TdApi.Thumbnail thumbnail
public TdApi.File animation
public static final int CONSTRUCTOR
public Animation()
public Animation(int duration, int width, int height, java.lang.String fileName, java.lang.String mimeType, boolean hasStickers, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, TdApi.File animation)
duration
- Duration of the animation, in seconds; as defined by the sender.width
- Width of the animation.height
- Height of the animation.fileName
- Original name of the file; as defined by the sender.mimeType
- MIME type of the file, usually "image/gif" or "video/mp4".hasStickers
- True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.minithumbnail
- Animation minithumbnail; may be null.thumbnail
- Animation thumbnail in JPEG or MPEG4 format; may be null.animation
- File containing the animation.public int getConstructor()
getConstructor
in class TdApi.Object