View Source ExTDLib.Method.SetBackground (ExTDLib v0.0.4)

Changes the background selected by the user; adds background to the list of installed backgrounds. Returns object_ptr<Background>.

NameTypeDescription
backgroundInputBackgroundThe input background to use; pass null to create a new filled background or to remove the current background.
typeBackgroundTypeBackground type; pass null to use the default type of the remote background or to remove the current background.
for_dark_themeboolPass true if the background is changed for a dark theme.

More details on telegram's documentation.