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>.

NameTypeDescription
chat_idstringChat identifier.
backgroundInputBackgroundThe input background to use; pass null to create a new filled background.
typeBackgroundTypeBackground type; pass null to use default background type for the chosen background.
dark_theme_dimmingnumberDimming of the background in dark themes, as a percentage; 0-100.
only_for_selfboolPass 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.