From 0bbc789caa4c9afa681366f87580986204c989df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 6 Jun 2024 17:50:39 +0300 Subject: [PATCH] Remove future 'format' field from InputSticker --- crates/teloxide-core/src/serde_multipart/mod.rs | 1 - crates/teloxide-core/src/types/input_sticker.rs | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/teloxide-core/src/serde_multipart/mod.rs b/crates/teloxide-core/src/serde_multipart/mod.rs index 9d48a112..806f663f 100644 --- a/crates/teloxide-core/src/serde_multipart/mod.rs +++ b/crates/teloxide-core/src/serde_multipart/mod.rs @@ -155,7 +155,6 @@ mod tests { "../../media/ teloxide-core-logo.png", ), - format: StickerFormat::Static, emoji_list: vec!["✈️⚙️".to_owned()], keywords: None, mask_position: None, diff --git a/crates/teloxide-core/src/types/input_sticker.rs b/crates/teloxide-core/src/types/input_sticker.rs index 242cf9c1..baa87bb9 100644 --- a/crates/teloxide-core/src/types/input_sticker.rs +++ b/crates/teloxide-core/src/types/input_sticker.rs @@ -1,6 +1,6 @@ use serde::Serialize; -use crate::types::{InputFile, MaskPosition, StickerFormat}; +use crate::types::{InputFile, MaskPosition}; /// This object describes a sticker to be added to a sticker set. #[serde_with_macros::skip_serializing_none] @@ -16,10 +16,6 @@ pub struct InputSticker { /// More information on Sending Files pub sticker: InputFile, - /// Format of the added sticker, must be one of “static” for a .WEBP or .PNG - /// image, “animated” for a .TGS animation, “video” for a WEBM video - pub format: StickerFormat, - /// List of 1-20 emoji associated with the sticker pub emoji_list: Vec,