pub struct Sticker {Show 14 fields
pub file_id: String,
pub file_unique_id: String,
pub type_name: String,
pub width: i64,
pub height: i64,
pub is_animated: bool,
pub is_video: bool,
pub thumb: Option<PhotoSize>,
pub emoji: Option<String>,
pub set_name: Option<String>,
pub premium_animation: Option<File>,
pub mask_position: Option<MaskPosition>,
pub custom_emoji_id: Option<String>,
pub file_size: Option<i64>,
}
Expand description
This object represents a sticker.
Fields§
§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_name: String
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: i64
Sticker width
height: i64
Sticker height
is_animated: bool
True, if the sticker is animated
is_video: bool
True, if the sticker is a video sticker
thumb: Option<PhotoSize>
Optional. Sticker thumbnail in the .WEBP or .JPG format
emoji: Option<String>
Optional. Emoji associated with the sticker
set_name: Option<String>
Optional. Name of the sticker set to which the sticker belongs
Optional. For premium regular stickers, premium animation for the sticker
mask_position: Option<MaskPosition>
Optional. For mask stickers, the position where the mask should be placed
custom_emoji_id: Option<String>
Optional. For custom emoji stickers, unique identifier of the custom emoji
file_size: Option<i64>
Optional. File size in bytes