Skip to content

setDefaultBackground

Function · TDLib 1.8.67 · d1085f9c

Sets default background for chats; adds the background to the list of installed backgrounds

setDefaultBackground(
  background: InputBackground,
  type: BackgroundType,
  for_dark_theme: Bool
) → Background

background

InputBackground

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

type

BackgroundType

Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported

for_dark_theme

Bool

Pass true if the background is set for a dark theme