Struct tg_bot_models::AddStickerToSet [−][src]
pub struct AddStickerToSet { pub user_id: i64, pub name: String, pub png_sticker: String, pub emojis: String, pub mask_position: Option<MaskPosition>, }
Use this method to add a new sticker to a set created by the bot. Returns True on success.
Fields
user_id: i64
User identifier of sticker set owner
name: String
Sticker set name
png_sticker: String
Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
emojis: String
One or more emoji corresponding to the sticker
mask_position: Option<MaskPosition>
A JSON-serialized object for position where the mask should be placed on faces
Trait Implementations
impl Debug for AddStickerToSet
[src]
impl Debug for AddStickerToSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AddStickerToSet
[src]
impl Clone for AddStickerToSet
fn clone(&self) -> AddStickerToSet
[src]
fn clone(&self) -> AddStickerToSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for AddStickerToSet
[src]
impl PartialEq for AddStickerToSet
fn eq(&self, other: &AddStickerToSet) -> bool
[src]
fn eq(&self, other: &AddStickerToSet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AddStickerToSet) -> bool
[src]
fn ne(&self, other: &AddStickerToSet) -> bool
This method tests for !=
.
impl PartialOrd for AddStickerToSet
[src]
impl PartialOrd for AddStickerToSet
fn partial_cmp(&self, other: &AddStickerToSet) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AddStickerToSet) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AddStickerToSet) -> bool
[src]
fn lt(&self, other: &AddStickerToSet) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AddStickerToSet) -> bool
[src]
fn le(&self, other: &AddStickerToSet) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AddStickerToSet) -> bool
[src]
fn gt(&self, other: &AddStickerToSet) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AddStickerToSet) -> bool
[src]
fn ge(&self, other: &AddStickerToSet) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for AddStickerToSet
impl Send for AddStickerToSet
impl Sync for AddStickerToSet
impl Sync for AddStickerToSet