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

premium_animation: Option<File>

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

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more