Remove future 'format' field from InputSticker

This commit is contained in:
Сырцев Вадим Игоревич 2024-06-06 17:50:39 +03:00
parent eb1f098302
commit 0bbc789caa
2 changed files with 1 additions and 6 deletions

View file

@ -155,7 +155,6 @@ mod tests {
"../../media/
teloxide-core-logo.png",
),
format: StickerFormat::Static,
emoji_list: vec!["✈️⚙️".to_owned()],
keywords: None,
mask_position: None,

View file

@ -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 <https://core.telegram.org/bots/api#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<String>,