telegram_bots_api/api/params/replace_sticker_in_set.rs
1use crate::api::structs::input_sticker::InputSticker;
2use serde::Serialize;
3
4/// <https://core.telegram.org/bots/api#replacestickerinset>
5/// 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.
6#[derive(Debug, Serialize, Default)]
7pub struct ReplaceStickerInSet {
8 pub user_id: i64,
9 pub name: String,
10 pub old_sticker: String,
11 pub sticker: InputSticker,
12}