Struct teloxide::payloads::AddStickerToSet
source · pub struct AddStickerToSet {
pub user_id: UserId,
pub name: String,
pub sticker: InputSticker,
pub emojis: String,
pub mask_position: Option<MaskPosition>,
}
Expand description
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: UserId
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§
source§impl AddStickerToSet
impl AddStickerToSet
pub fn new( user_id: UserId, name: impl Into<String>, sticker: InputSticker, emojis: impl Into<String> ) -> AddStickerToSet ⓘ
Trait Implementations§
source§impl Clone for AddStickerToSet
impl Clone for AddStickerToSet
source§impl Debug for AddStickerToSet
impl Debug for AddStickerToSet
source§impl MultipartPayload for AddStickerToSet
impl MultipartPayload for AddStickerToSet
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
source§impl Payload for AddStickerToSet
impl Payload for AddStickerToSet
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for AddStickerToSet
impl Serialize for AddStickerToSet
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
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§
source§impl<P> AddStickerToSetSetters for Pwhere
P: HasPayload<Payload = AddStickerToSet>,
impl<P> AddStickerToSetSetters for Pwhere P: HasPayload<Payload = AddStickerToSet>,
source§fn sticker(self, value: InputSticker) -> Self
fn sticker(self, value: InputSticker) -> Self
sticker
field.source§fn mask_position(self, value: MaskPosition) -> Self
fn mask_position(self, value: MaskPosition) -> Self
mask_position
field.