1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{FileMeta, InputFile, UserId};
impl_payload! {
@[multipart = png_sticker]
/// Use this method to upload a .PNG file with a sticker for later use in _createNewStickerSet_ and _addStickerToSet_ methods (can be used multiple times). Returns the uploaded File on success.
#[derive(Debug, Clone, Serialize)]
pub UploadStickerFile (UploadStickerFileSetters) => FileMeta {
required {
/// User identifier of sticker file owner
pub user_id: UserId,
/// 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. [More info on Sending Files »]
///
/// [More info on Sending Files »]: crate::types::InputFile
pub png_sticker: InputFile,
}
}
}