public static class TdApi.InputSticker extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
emojis
String with 1-20 emoji corresponding to the sticker.
|
TdApi.StickerFormat |
format
Format of the sticker.
|
java.lang.String[] |
keywords
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
|
TdApi.MaskPosition |
maskPosition
Position where the mask is placed; pass null if not specified.
|
TdApi.InputFile |
sticker
File with the sticker; must fit in a 512x512 square.
|
| Constructor and Description |
|---|
InputSticker()
A sticker to be added to a sticker set.
|
InputSticker(TdApi.InputFile sticker,
TdApi.StickerFormat format,
java.lang.String emojis,
TdApi.MaskPosition maskPosition,
java.lang.String[] keywords)
A sticker to be added to a sticker set.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputFile sticker
public TdApi.StickerFormat format
public java.lang.String emojis
public TdApi.MaskPosition maskPosition
public java.lang.String[] keywords
public static final int CONSTRUCTOR
public InputSticker()
public InputSticker(TdApi.InputFile sticker, TdApi.StickerFormat format, java.lang.String emojis, TdApi.MaskPosition maskPosition, java.lang.String[] keywords)
sticker - File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.format - Format of the sticker.emojis - String with 1-20 emoji corresponding to the sticker.maskPosition - Position where the mask is placed; pass null if not specified.keywords - List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object