MadelineProtoDocs/docs/API_docs/constructors/wallPaperSettings.md

44 lines
1.5 KiB
Markdown

---
title: wallPaperSettings
description: Wallpaper settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: wallPaperSettings
[Back to constructors index](index.md)
Wallpaper settings
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|blur|[Bool](../types/Bool.md) | Optional|If set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12|
|motion|[Bool](../types/Bool.md) | Optional|If set, the background needs to be slightly moved when device is rotated|
|background\_color|[int](../types/int.md) | Optional|If set, a PNG pattern is to be combined with the `color` chosen by the user: the main color of the background in RGB24 format|
|second\_background\_color|[int](../types/int.md) | Optional||
|intensity|[int](../types/int.md) | Optional|Intensity of the pattern when it is shown above the main background color, 0-100|
|rotation|[int](../types/int.md) | Optional||
### Type: [WallPaperSettings](../types/WallPaperSettings.md)
### Example:
```php
$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'second_background_color' => int, 'intensity' => int, 'rotation' => int];
```
Or, if you're into Lua:
```lua
wallPaperSettings={_='wallPaperSettings', blur=Bool, motion=Bool, background_color=int, second_background_color=int, intensity=int, rotation=int}
```