use serde::{Deserialize, Serialize};
use crate::entities::{
photo_size::PhotoSize,
sticker::{Sticker, StickerType},
};
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct StickerSet {
pub name: String,
pub title: String,
pub sticker_type: StickerType,
pub stickers: Vec<Sticker>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub thumbnail: Option<PhotoSize>,
}
impl StickerSet {
pub fn get_url(&self) -> String {
format!("https://t.me/addstickers/{}", self.name)
}
}