api.setBackground()
Changes the background selected by the user; adds background to the list of installed backgrounds
Parameters
SetBackgroundParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
background | The input background to use; pass null to create a new filled backgrounds or to remove the current background | |
type | Background type; pass null to use the default type of the remote background or to remove the current background | |
forDarkTheme | boolean | True, if the background is chosen for dark theme |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'setBackground' | 'error'
airgram: Airgram
request: {
method: 'setBackground'
params: SetBackgroundParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}