Package org.drinkless.tdlib
Class TdApi.Sticker
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Sticker
-
- Enclosing class:
- TdApi
public static class TdApi.Sticker extends TdApi.Object
Describes a sticker.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringemojiEmoji corresponding to the sticker.intheightSticker height; as defined by the sender.booleanisAnimatedTrue, if the sticker is an animated sticker in TGS format.booleanisMaskTrue, if the sticker is a mask.TdApi.MaskPositionmaskPositionPosition where the mask is placed; may be null.TdApi.ClosedVectorPath[]outlineSticker's outline represented as a list of closed vector paths; may be empty.longsetIdThe identifier of the sticker set to which the sticker belongs; 0 if none.TdApi.FilestickerFile containing the sticker.TdApi.ThumbnailthumbnailSticker thumbnail in WEBP or JPEG format; may be null.intwidthSticker width; as defined by the sender.
-
Constructor Summary
Constructors Constructor Description Sticker()Describes a sticker.Sticker(long setId, int width, int height, String emoji, boolean isAnimated, boolean isMask, TdApi.MaskPosition maskPosition, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, TdApi.File sticker)Describes a sticker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
setId
public long setId
The identifier of the sticker set to which the sticker belongs; 0 if none.
-
width
public int width
Sticker width; as defined by the sender.
-
height
public int height
Sticker height; as defined by the sender.
-
emoji
public String emoji
Emoji corresponding to the sticker.
-
isAnimated
public boolean isAnimated
True, if the sticker is an animated sticker in TGS format.
-
isMask
public boolean isMask
True, if the sticker is a mask.
-
maskPosition
public TdApi.MaskPosition maskPosition
Position where the mask is placed; may be null.
-
outline
public TdApi.ClosedVectorPath[] outline
Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.
-
thumbnail
public TdApi.Thumbnail thumbnail
Sticker thumbnail in WEBP or JPEG format; may be null.
-
sticker
public TdApi.File sticker
File containing the sticker.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sticker
public Sticker()
Describes a sticker.
-
Sticker
public Sticker(long setId, int width, int height, String emoji, boolean isAnimated, boolean isMask, TdApi.MaskPosition maskPosition, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, TdApi.File sticker)Describes a sticker.- Parameters:
setId- The identifier of the sticker set to which the sticker belongs; 0 if none.width- Sticker width; as defined by the sender.height- Sticker height; as defined by the sender.emoji- Emoji corresponding to the sticker.isAnimated- True, if the sticker is an animated sticker in TGS format.isMask- True, if the sticker is a mask.maskPosition- Position where the mask is placed; may be null.outline- Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.thumbnail- Sticker thumbnail in WEBP or JPEG format; may be null.sticker- File containing the sticker.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-