View Source ExTDLib.Method.SetChatBackground (ExTDLib v0.0.4)
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| chat_id | string | Chat identifier. |
| background | InputBackground | The input background to use; pass null to create a new filled background. |
| type | BackgroundType | Background type; pass null to use default background type for the chosen background. |
| dark_theme_dimming | number | Dimming of the background in dark themes, as a percentage; 0-100. |
| only_for_self | bool | Pass true to set background only for self; pass false to set background for both chat users. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious. |
More details on telegram's documentation.