[][src]Struct actix_telegram::methods::AddStickerToSet

pub struct AddStickerToSet { /* fields omitted */ }

Use this method to add a new sticker to a set created by the bot. Returns True on success.

Methods

impl AddStickerToSet
[src]

pub fn set_user_id<__T: Into<Integer>>(&mut self, val: __T) -> &mut Self
[src]

User identifier of sticker set owner

pub fn set_name<__T: Into<String>>(&mut self, val: __T) -> &mut Self
[src]

Sticker set name

pub fn set_png_sticker<__T: Into<InputFileOrString>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

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 »

pub fn set_emojis<__T: Into<String>>(&mut self, val: __T) -> &mut Self
[src]

One or more emoji corresponding to the sticker

pub fn set_mask_position<__T: Into<Option<MaskPosition>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

A JSON-serialized object for position where the mask should be placed on faces

impl AddStickerToSet
[src]

pub fn new(
    user_id: impl Into<Integer>,
    name: impl Into<String>,
    png_sticker: impl Into<InputFileOrString>,
    emojis: impl Into<String>
) -> Self
[src]

Trait Implementations

impl Debug for AddStickerToSet
[src]

impl Message for AddStickerToSet
[src]

type Result = Result<True, ()>

The type of value that this message will resolved with if it is successful. Read more

impl Handler<AddStickerToSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Serialize for AddStickerToSet
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T