Struct telegram_bot2::models::StickerBuilder
source · pub struct StickerBuilder { /* private fields */ }Expand description
Builder for the Sticker structure
Implementations§
source§impl StickerBuilder
impl StickerBuilder
sourcepub fn new(
file_id: String,
file_unique_id: String,
_type: StickerType,
width: i64,
height: i64,
is_animated: bool,
is_video: bool
) -> Self
pub fn new( file_id: String, file_unique_id: String, _type: StickerType, width: i64, height: i64, is_animated: bool, is_video: bool ) -> Self
Instantiate the builder with the fields file_id, file_unique_id, _type, width, height, is_animated, is_video, thumb, emoji, set_name, premium_animation, mask_position, custom_emoji_id, file_size
Set the field premium_animation to the given value
sourcepub fn mask_position(self, val: MaskPosition) -> Self
pub fn mask_position(self, val: MaskPosition) -> Self
Set the field mask_position to the given value
sourcepub fn custom_emoji_id(self, val: String) -> Self
pub fn custom_emoji_id(self, val: String) -> Self
Set the field custom_emoji_id to the given value