Sticker#

class aiogram.types.sticker.Sticker(*, file_id: str, file_unique_id: str, type: str, width: int, height: int, is_animated: bool, is_video: bool, thumb: Optional[PhotoSize] = None, emoji: Optional[str] = None, set_name: Optional[str] = None, premium_animation: Optional[File] = None, mask_position: Optional[MaskPosition] = None, custom_emoji_id: Optional[str] = None, file_size: Optional[int] = None, **extra_data: Any)[source]#

This object represents a sticker.

Source: https://core.telegram.org/bots/api#sticker

file_id: str#

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

file_unique_id: str#

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: str#

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: int#

Sticker width

height: int#

Sticker height

is_animated: bool#

True, if the sticker is animated

is_video: bool#

True, if the sticker is a video sticker

thumb: Optional[PhotoSize]#

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

emoji: Optional[str]#

Optional. Emoji associated with the sticker

set_name: Optional[str]#

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

premium_animation: Optional[File]#

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

mask_position: Optional[MaskPosition]#

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

custom_emoji_id: Optional[str]#

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

file_size: Optional[int]#

Optional. File size in bytes