diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index 446c1d11..8f0e0996 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -3783,11 +3783,6 @@ Schema( ty: ArrayOf(RawTy("InputSticker")), descr: Doc(md: "A JSON-serialized list of 1-50 initial stickers to be added to the sticker set") ), - Param( - name: "sticker_format", - ty: RawTy("StickerFormat"), - descr: Doc(md: "Format of the sticker, must be one of “static”, “animated”, “video”") - ), Param( name: "sticker_type", ty: Option(RawTy("StickerType")), diff --git a/crates/teloxide-core/src/bot/api.rs b/crates/teloxide-core/src/bot/api.rs index a1c1bbf9..26ce46f0 100644 --- a/crates/teloxide-core/src/bot/api.rs +++ b/crates/teloxide-core/src/bot/api.rs @@ -6,7 +6,7 @@ use crate::{ requests::{JsonRequest, MultipartRequest}, types::{ BotCommand, ChatId, ChatPermissions, InlineQueryResult, InputFile, InputMedia, - InputSticker, LabeledPrice, MessageId, Recipient, StickerFormat, ThreadId, UserId, + InputSticker, LabeledPrice, MessageId, Recipient, ThreadId, UserId, }, Bot, }; @@ -1189,7 +1189,6 @@ impl Requester for Bot { name: N, title: T, stickers: S, - sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet where N: Into, @@ -1198,7 +1197,7 @@ impl Requester for Bot { { Self::CreateNewStickerSet::new( self.clone(), - payloads::CreateNewStickerSet::new(user_id, name, title, stickers, sticker_format), + payloads::CreateNewStickerSet::new(user_id, name, title, stickers), ) } diff --git a/crates/teloxide-core/src/local_macros.rs b/crates/teloxide-core/src/local_macros.rs index 7bc088cc..e8f4e794 100644 --- a/crates/teloxide-core/src/local_macros.rs +++ b/crates/teloxide-core/src/local_macros.rs @@ -1308,11 +1308,11 @@ macro_rules! requester_forward { (@method create_new_sticker_set $body:ident $ty:ident) => { type CreateNewStickerSet = $ty![CreateNewStickerSet]; - fn create_new_sticker_set(&self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat) -> Self::CreateNewStickerSet where N: Into, + fn create_new_sticker_set(&self, user_id: UserId, name: N, title: T, stickers: S) -> Self::CreateNewStickerSet where N: Into, T: Into, S: IntoIterator { let this = self; - $body!(create_new_sticker_set this (user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat)) + $body!(create_new_sticker_set this (user_id: UserId, name: N, title: T, stickers: S)) } }; (@method add_sticker_to_set $body:ident $ty:ident) => { diff --git a/crates/teloxide-core/src/payloads/create_new_sticker_set.rs b/crates/teloxide-core/src/payloads/create_new_sticker_set.rs index 9ca7be3d..d3a41491 100644 --- a/crates/teloxide-core/src/payloads/create_new_sticker_set.rs +++ b/crates/teloxide-core/src/payloads/create_new_sticker_set.rs @@ -2,7 +2,7 @@ use serde::Serialize; -use crate::types::{InputSticker, StickerFormat, StickerType, True, UserId}; +use crate::types::{InputSticker, StickerType, True, UserId}; impl_payload! { /// Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success. @@ -17,8 +17,6 @@ impl_payload! { pub title: String [into], /// A JSON-serialized list of 1-50 initial stickers to be added to the sticker set pub stickers: Vec [collect], - /// Format of the sticker, must be one of “static”, “animated”, “video” - pub sticker_format: StickerFormat, } optional { /// Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created. diff --git a/crates/teloxide-core/src/requests/requester.rs b/crates/teloxide-core/src/requests/requester.rs index 731e370f..204d6d9c 100644 --- a/crates/teloxide-core/src/requests/requester.rs +++ b/crates/teloxide-core/src/requests/requester.rs @@ -1071,7 +1071,6 @@ pub trait Requester { name: N, title: T, stickers: S, - sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet where N: Into,