Module

x/grammy_types/mod.ts>Sticker

Type declarations of the Telegram Bot API.
Latest
interface Sticker
import { type Sticker } from "https://dotland.deno.dev/x/grammy_types@v3.15.0/mod.ts";

This object represents a sticker.

Properties

file_id: string

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

file_unique_id: string

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.

type: "regular" | "mask" | "custom_emoji"

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.

width: number

Sticker width

height: number

Sticker height

is_animated: boolean

True, if the sticker is animated

is_video: boolean

True, if the sticker is a video sticker

optional
thumbnail: PhotoSize

Sticker thumbnail in the .WEBP or .JPG format

optional
emoji: string

Emoji associated with the sticker

optional
set_name: string

Name of the sticker set to which the sticker belongs

optional
premium_animation: File

For premium regular stickers, premium animation for the sticker

optional
mask_position: MaskPosition

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

optional
custom_emoji_id: string

For custom emoji stickers, unique identifier of the custom emoji

optional
file_size: number

File size in bytes

import Sticker
import { Sticker } from "https://dotland.deno.dev/x/grammy_types@v3.15.0/mod.ts";