Struct actix_telegram::methods::AddStickerToSet [−][src]
pub struct AddStickerToSet { pub user_id: Integer, pub name: String, pub png_sticker: InputFileOrString, pub emojis: String, pub mask_position: Option<MaskPosition>, }
Use this method to add a new sticker to a set created by the bot. Returns True on success.
Fields
user_id: Integer
User identifier of sticker set owner
name: String
Sticker set name
png_sticker: InputFileOrString
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 »
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
Trait Implementations
impl Debug for AddStickerToSet
[src]
impl Debug for AddStickerToSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ActixMessage for AddStickerToSet
[src]
impl ActixMessage for AddStickerToSet
type Result = Result<True, ()>
The type of value that this message will resolved with if it is successful. Read more
impl Handler<AddStickerToSet> for TelegramApi
[src]
impl Handler<AddStickerToSet> for TelegramApi
Auto Trait Implementations
impl Send for AddStickerToSet
impl Send for AddStickerToSet
impl !Sync for AddStickerToSet
impl !Sync for AddStickerToSet