telegram_bots_api/api/structs/
background_type_wallpaper.rs

1use crate::api::structs::document::Document;
2use serde::{Deserialize, Serialize};
3
4/// <https://core.telegram.org/bots/api#backgroundtypewallpaper>
5/// The background is a wallpaper in the JPEG format.
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
7pub struct BackgroundTypeWallpaper {
8    #[serde(rename(serialize = "type", deserialize = "type"))]
9    pub kind: String,
10    pub document: Document,
11    pub dark_theme_dimming: u8,
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub is_blurred: Option<bool>,
14    #[serde(skip_serializing_if = "Option::is_none")]
15    pub is_moving: Option<bool>,
16}