teloxide_core/payloads/
replace_sticker_in_set.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{InputSticker, True, UserId};
6
7impl_payload! {
8    @[multipart = sticker]
9    /// Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling [DeleteStickerFromSet], then [AddStickerToSet], then [SetStickerPositionInSet]. Returns _True_ on success.
10    ///
11    /// [DeleteStickerFromSet]: https://docs.rs/teloxide/latest/teloxide/payloads/struct.DeleteStickerFromSet.html
12    /// [AddStickerToSet]: https://docs.rs/teloxide/latest/teloxide/payloads/struct.AddStickerToSet.html
13    /// [SetStickerPositionInSet]: https://docs.rs/teloxide/latest/teloxide/payloads/struct.SetStickerPositionInSet.html
14    #[derive(Debug, Clone, Serialize)]
15    pub ReplaceStickerInSet (ReplaceStickerInSetSetters) => True {
16        required {
17            /// User identifier of the sticker set owner
18            pub user_id: UserId,
19            /// Sticker set name
20            pub name: String [into],
21            /// File identifier of the replaced sticker
22            pub old_sticker: String [into],
23            /// 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 remains unchanged.
24            pub sticker: InputSticker,
25        }
26    }
27}