Sticker

@Serializable
data class Sticker(val fileId: String, val fileUniqueId: String, val type: StickerType, val width: Int, val height: Int, val isAnimated: Boolean, val isVideo: Boolean, val thumbnail: PhotoSize? = null, val emoji: String? = null, val setName: String? = null, val premiumAnimation: File? = null, val maskPosition: MaskPosition? = null, val customEmojiId: String? = null, val needsRepainting: Boolean? = null, val fileSize: Int? = null) : MultipleResponse

This object represents a sticker.

Api reference

Constructors

Link copied to clipboard
constructor(fileId: String, fileUniqueId: String, type: StickerType, width: Int, height: Int, isAnimated: Boolean, isVideo: Boolean, thumbnail: PhotoSize? = null, emoji: String? = null, setName: String? = null, premiumAnimation: File? = null, maskPosition: MaskPosition? = null, customEmojiId: String? = null, needsRepainting: Boolean? = null, fileSize: Int? = null)

Properties

Link copied to clipboard
val customEmojiId: String? = null

Optional. For custom emoji stickers, unique identifier of the custom emoji

Link copied to clipboard
val emoji: String? = null

Optional. Emoji associated with the sticker

Link copied to clipboard

Identifier for this file, which can be used to download or reuse the file

Link copied to clipboard
val fileSize: Int? = null

Optional. File size in bytes

Link copied to clipboard

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Link copied to clipboard
val height: Int

Sticker height

Link copied to clipboard

True, if the sticker is animated

Link copied to clipboard

True, if the sticker is a video sticker

Link copied to clipboard

Optional. For mask stickers, the position where the mask should be placed

Link copied to clipboard

Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places

Link copied to clipboard
val premiumAnimation: File? = null

Optional. For premium regular stickers, premium animation for the sticker

Link copied to clipboard
val setName: String? = null

Optional. Name of the sticker set to which the sticker belongs

Link copied to clipboard
val thumbnail: PhotoSize? = null

Optional. Sticker thumbnail in the .WEBP or .JPG format

Link copied to clipboard

Type of the sticker, currently one of "regular", "mask", "custom_emoji". The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.

Link copied to clipboard
val width: Int

Sticker width