[−][src]Struct actix_telegram::methods::AddStickerToSet
Use this method to add a new sticker to a set created by the bot. Returns True on success.
Methods
impl AddStickerToSet
[src]
impl AddStickerToSet
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>>( | [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>>>( | [src] |
A JSON-serialized object for position where the mask should be placed on faces
impl AddStickerToSet
[src]
impl AddStickerToSet
pub fn new( | [src] |
Trait Implementations
impl Debug for AddStickerToSet
[src]
impl Debug for AddStickerToSet
impl Message for AddStickerToSet
[src]
impl Message for AddStickerToSet
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]
impl Handler<AddStickerToSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Serialize for AddStickerToSet
[src]
impl Serialize for AddStickerToSet
Auto Trait Implementations
impl Send for AddStickerToSet
impl Send for AddStickerToSet
impl !Sync for AddStickerToSet
impl !Sync for AddStickerToSet
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T