diff --git a/src/api_params.rs b/src/api_params.rs index 2379a02..df004e2 100644 --- a/src/api_params.rs +++ b/src/api_params.rs @@ -1983,8 +1983,6 @@ pub struct CreateNewStickerSetParams { pub stickers: Vec, - pub sticker_format: StickerFormat, - #[serde(skip_serializing_if = "Option::is_none")] #[builder(setter(into, strip_option))] pub sticker_type: Option, @@ -2071,6 +2069,8 @@ pub struct SetStickerSetThumbnailParams { #[serde(skip_serializing_if = "Option::is_none")] #[builder(setter(into, strip_option), default)] pub thumbnail: Option, + + pub format: StickerFormat, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)] diff --git a/src/objects.rs b/src/objects.rs index cc09cfd..edb691b 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -2183,6 +2183,7 @@ pub struct Sticker { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Builder)] pub struct InputSticker { pub sticker: FileUpload, + pub format: StickerFormat, pub emoji_list: Vec, #[serde(skip_serializing_if = "Option::is_none")] @@ -2211,10 +2212,6 @@ pub struct StickerSet { #[serde(rename = "sticker_type")] pub sticker_type: StickerType, - pub is_animated: bool, - - pub is_video: bool, - #[doc(hidden)] #[deprecated(since = "0.19.2", note = "Please use `sticker_type` instead")] pub contains_masks: bool,