#![allow(clippy::too_many_arguments)]
use serde::Serialize;
use crate::error::Result;
use crate::types::Sticker;
use crate::Bot;
impl Bot {
pub fn get_forum_topic_icon_stickers(&self) -> GetForumTopicIconStickersBuilder {
GetForumTopicIconStickersBuilder::new(self)
}
}
#[derive(Serialize)]
pub struct GetForumTopicIconStickersBuilder<'a> {
#[serde(skip)]
bot: &'a Bot,
}
impl<'a> GetForumTopicIconStickersBuilder<'a> {
pub fn new(bot: &'a Bot) -> Self {
Self { bot }
}
pub async fn send(self) -> Result<Vec<Sticker>> {
let form = serde_json::to_value(&self)?;
self.bot.get("getForumTopicIconStickers", Some(&form)).await
}
}