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

x/mtkruto/3_types.ts>Sticker

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Sticker
Re-export
import { type Sticker } from "https://deno.land/x/mtkruto@0.1.118/3_types.ts";

This object represents a sticker.

Properties

fileId: string

A file identifier that can be used to download or reuse this file.

fileUniqueId: string

A file identifier that can be used to identify this 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