use crate::Client;
use crate::errors::Result;
use crate::methods::accepted;
use crate::raw::functions;
use crate::types::ChatBackground;
impl Client {
/// Installs a wallpaper with its display settings.
pub async fn install_wallpaper(&self, wallpaper: &ChatBackground) -> Result<()> {
let (settings, wallpaper) = (wallpaper.write_settings(), wallpaper.write());
accepted(self.invoke(&functions::account::InstallWallPaper { wallpaper, settings }).await?)
}
}