[−][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]
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]
&mut self,
val: __T
) -> &mut Self
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]
&mut self,
val: __T
) -> &mut Self
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]
user_id: impl Into<Integer>,
name: impl Into<String>,
png_sticker: impl Into<InputFileOrString>,
emojis: impl Into<String>
) -> Self
Trait Implementations
impl Debug for AddStickerToSet
[src]
impl Handler<AddStickerToSet> for TelegramApi
[src]
type Result = Box<dyn Future<Item = True, Error = Error>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AddStickerToSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
&mut self,
msg: AddStickerToSet,
_ctx: &mut Context<Self>
) -> Self::Result
impl Message for AddStickerToSet
[src]
type Result = Result<True, Error>
The type of value that this message will resolved with if it is successful. Read more
impl Serialize for AddStickerToSet
[src]
Auto Trait Implementations
impl Send for AddStickerToSet
impl Unpin for AddStickerToSet
impl !Sync for AddStickerToSet
impl !UnwindSafe for AddStickerToSet
impl !RefUnwindSafe for AddStickerToSet
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,