Class TdApi.InputSticker
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InputSticker
- Enclosing class:
- TdApi
A sticker to be added to a sticker set.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.String with 1-20 emoji corresponding to the sticker.Format of the sticker.String[]
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.Position where the mask is placed; pass null if not specified.File with the sticker; must fit in a 512x512 square. -
Constructor Summary
ConstructorDescriptionA sticker to be added to a sticker set.InputSticker
(TdApi.InputFile sticker, TdApi.StickerFormat format, String emojis, TdApi.MaskPosition maskPosition, String[] keywords) A sticker to be added to a sticker set. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputSticker
public InputSticker()A sticker to be added to a sticker set. -
InputSticker
public InputSticker(TdApi.InputFile sticker, TdApi.StickerFormat format, String emojis, TdApi.MaskPosition maskPosition, String[] keywords) A sticker to be added to a sticker set.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-