[][src]Struct tgbot::methods::AddStickerToSet

pub struct AddStickerToSet { /* fields omitted */ }

Add a new sticker to a set created by the bot

Methods

impl AddStickerToSet[src]

pub fn new<N, P, E>(
    user_id: Integer,
    name: N,
    png_sticker: P,
    emojis: E
) -> Self where
    N: Into<String>,
    P: Into<InputFile>,
    E: Into<String>, 
[src]

Creates a new AddStickerToSet

Arguments

  • user_id - User identifier of sticker set owner
  • name - Sticker set name
  • png_sticker - 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
  • emojis - One or more emoji corresponding to the sticker

pub fn mask_position(
    self,
    value: MaskPosition
) -> Result<Self, MaskPositionError>
[src]

Position where the mask should be placed on faces

Trait Implementations

impl Debug for AddStickerToSet[src]

impl Method for AddStickerToSet[src]

type Response = bool

Type of successful result in API response

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.