pub async fn set_chat_background(
chat_id: i64,
background: Option<InputBackground>,
type: Option<BackgroundType>,
dark_theme_dimming: i32,
only_for_self: bool,
client_id: i32,
) -> Result<(), Error>Expand description
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right
§Arguments
chat_id- Chat identifierbackground- The input background to use; pass null to create a new filled or chat theme backgroundr#type- Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn’t supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chatdark_theme_dimming- Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of backgroundonly_for_self- Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn’t of the type inputBackgroundPreviousclient_id- The client id to send the request to