Skip to main content

ronami_core/payloads/
add_sticker_to_set.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::InputSticker;
6use crate::types::True;
7use crate::types::UserId;
8
9impl_payload! {
10    @[multipart = sticker]
11    /// Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
12    #[derive(Debug, Clone, Serialize)]
13    pub AddStickerToSet (AddStickerToSetSetters) => True {
14        required {
15            /// User identifier of sticker file owner
16            pub user_id: UserId,
17            /// Sticker set name
18            pub name: String [into],
19            /// A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
20            pub sticker: InputSticker,
21        }
22    }
23}