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