Struct teloxide_core::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§
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.