set_chat_background


Description:

public async Ok set_chat_background (int64 chat_id, InputBackground background, BackgroundType type_, int32 dark_theme_dimming, bool only_for_self) throws TDLibError

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

Parameters:

chat_id

Chat identifier

background

The input background to use; pass null to create a new filled or chat theme background

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 chat

dark_theme_dimming

Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background

only_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 inputBackgroundPrevious