Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/types/1_sticker.ts>Sticker

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Sticker
import { type Sticker } from "https://deno.land/x/mtkruto@0.1.105/types/1_sticker.ts";

This object represents a sticker.

Properties

fileId: string

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

fileUniqueId: string

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

type: "regular" | "mask" | "customEmoji"

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

width: number

Sticker width

height: number

Sticker height

isAnimated: boolean

True, if the sticker is animated

isVideo: boolean

True, if the sticker is a video sticker

thumbnails: Thumbnail[]

Sticker thumbnail in the .WEBP or .JPG format

optional
emoji: string

Emoji associated with the sticker

optional
setName: string

Name of the sticker set to which the sticker belongs

optional
premiumAnimation: File

For premium regular stickers, premium animation for the sticker

optional
maskPosition: MaskPosition

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

optional
customEmojiId: string

For custom emoji stickers, unique identifier of the custom emoji

optional
needsRepainting: boolean

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

optional
fileSize: number

File size in bytes