[−][src]Struct tgbot::methods::AddStickerToSet
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]
user_id: Integer,
name: N,
png_sticker: P,
emojis: E
) -> Self where
N: Into<String>,
P: Into<InputFile>,
E: Into<String>,
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]
self,
value: MaskPosition
) -> Result<Self, MaskPositionError>
Position where the mask should be placed on faces
Trait Implementations
impl Debug for AddStickerToSet
[src]
impl Method for AddStickerToSet
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AddStickerToSet
impl Send for AddStickerToSet
impl !Sync for AddStickerToSet
impl Unpin for AddStickerToSet
impl !UnwindSafe for AddStickerToSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,