Struct teloxide_core::payloads::AddStickerToSet [−][src]
Use this method to add a new sticker to a set created by the bot. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.
Fields
user_id: i64
User identifier of sticker file owner
name: String
Sticker set name
sticker: InputSticker
PNG or TGS 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 »
emojis: String
One or more emoji corresponding to the sticker
mask_position: Option<MaskPosition>
A JSON-serialized object for position where the mask should be placed on faces
Implementations
impl AddStickerToSet
[src]
pub fn new(
user_id: i64,
name: impl Into<String>,
sticker: InputSticker,
emojis: impl Into<String>
) -> Self
[src]
user_id: i64,
name: impl Into<String>,
sticker: InputSticker,
emojis: impl Into<String>
) -> Self
Trait Implementations
impl Clone for AddStickerToSet
[src]
fn clone(&self) -> AddStickerToSet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AddStickerToSet
[src]
impl MultipartPayload for AddStickerToSet
[src]
impl PartialEq<AddStickerToSet> for AddStickerToSet
[src]
fn eq(&self, other: &AddStickerToSet) -> bool
[src]
fn ne(&self, other: &AddStickerToSet) -> bool
[src]
impl Payload for AddStickerToSet
[src]
impl Serialize for AddStickerToSet
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,