InputSticker

@Serializable
data class InputSticker(var sticker: ImplicitFile, val format: StickerFormat, val emojiList: List<String>, val maskPosition: MaskPosition? = null, val keywords: List<String>? = null)

This object describes a sticker to be added to a sticker set.

Api reference

Constructors

Link copied to clipboard
constructor(sticker: String, format: StickerFormat, emojiList: List<String>, maskPosition: MaskPosition? = null, keywords: List<String>? = null)
constructor(sticker: InputFile, format: StickerFormat, emojiList: List<String>, maskPosition: MaskPosition? = null, keywords: List<String>? = null)
constructor(sticker: ImplicitFile, format: StickerFormat, emojiList: List<String>, maskPosition: MaskPosition? = null, keywords: List<String>? = null)

Properties

Link copied to clipboard

List of 1-20 emoji associated with the sticker

Link copied to clipboard

Format of the added sticker, must be one of "static" for a .WEBP or .PNG image, "animated" for a .TGS animation, "video" for a WEBM video

Link copied to clipboard
val keywords: List<String>? = null

Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For "regular" and "custom_emoji" stickers only.

Link copied to clipboard

Optional. Position where the mask should be placed on faces. For "mask" stickers only.

Link copied to clipboard

The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass "attach://" to upload a new one using multipart/form-data under name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files: https://core.telegram.org/bots/api#sending-files