Skip to content

Commit

Permalink
Bot API 7.2 - Mixed-Format Sticker Packs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Apr 19, 2024
1 parent 397ed69 commit c5d9276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/api_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,6 @@ pub struct CreateNewStickerSetParams {

pub stickers: Vec<InputSticker>,

pub sticker_format: StickerFormat,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option))]
pub sticker_type: Option<StickerType>,
Expand Down Expand Up @@ -2071,6 +2069,8 @@ pub struct SetStickerSetThumbnailParams {
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
pub thumbnail: Option<FileUpload>,

pub format: StickerFormat,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)]
Expand Down
5 changes: 1 addition & 4 deletions src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c5d9276

Please sign in to comment.