Function set_default_background

Source
pub async fn set_default_background(
    background: Option<InputBackground>,
    type: Option<BackgroundType>,
    for_dark_theme: bool,
    client_id: i32,
) -> Result<Background, Error>
Expand description

Sets default background for chats; adds the background to the list of installed backgrounds

§Arguments

  • background - The input background to use; pass null to create a new filled background
  • r#type - Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn’t supported
  • for_dark_theme - Pass true if the background is set for a dark theme
  • client_id - The client id to send the request to