From c5d9276a0dc346d2962953e4b662062fdd66023d Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 19 Apr 2024 12:00:42 +0300 Subject: [PATCH] Bot API 7.2 - Mixed-Format Sticker Packs --- src/api_params.rs | 4 ++-- src/objects.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) 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,