telers/methods/
get_sticker_set.rs1use crate::client::Bot;
2use serde::Serialize;
3#[derive(Clone, Debug, Serialize)]
9pub struct GetStickerSet {
10 pub name: Box<str>,
12}
13impl GetStickerSet {
14 #[must_use]
19 pub fn new<T0: Into<Box<str>>>(name: T0) -> Self {
20 Self {
21 name: name.into(),
22 }
23 }
24
25 #[must_use]
27 pub fn name<T: Into<Box<str>>>(self, val: T) -> Self {
28 let mut this = self;
29 this.name = val.into();
30 this
31 }
32}
33impl super::TelegramMethod for GetStickerSet {
34 type Method = Self;
35 type Return = crate::types::StickerSet;
36
37 fn build_request<Client>(self, _bot: &Bot<Client>) -> super::Request<Self::Method> {
38 super::Request::new("getStickerSet", self, None)
39 }
40}