libtd-ktx / kotlinx.telegram.coroutines / setBackground
setBackground
suspend fun TelegramFlow.setBackground(background: InputBackground?, type: BackgroundType?, forDarkTheme: Boolean): Background
Suspend function, which changes the background selected by the user; adds background to the list of installed backgrounds.
Parameters
background - The input background to use, null for filled backgrounds.
type - Background type; null for default background. The method will return error 404 if
type is null.
forDarkTheme - True, if the background is chosen for dark theme.
Return Background Describes a chat background.