use crate::client::Bot;
use serde::Serialize;
#[derive(Clone, Debug, Serialize)]
pub struct DeleteStickerFromSet {
pub sticker: Box<str>,
}
impl DeleteStickerFromSet {
#[must_use]
pub fn new<T0: Into<Box<str>>>(sticker: T0) -> Self {
Self {
sticker: sticker.into(),
}
}
#[must_use]
pub fn sticker<T: Into<Box<str>>>(self, val: T) -> Self {
let mut this = self;
this.sticker = val.into();
this
}
}
impl super::TelegramMethod for DeleteStickerFromSet {
type Method = Self;
type Return = bool;
fn build_request<Client>(self, _bot: &Bot<Client>) -> super::Request<Self::Method> {
super::Request::new("deleteStickerFromSet", self, None)
}
}