1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 19:36:56 +01:00
MadelineProto/docs/TD_docs/constructors/wallpapers.md

45 lines
734 B
Markdown
Raw Normal View History

---
title: wallpapers
description: Contains list of wallpapers
---
## Constructor: wallpapers
[Back to constructors index](index.md)
Contains list of wallpapers
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|wallpapers|Array of [wallpaper](../constructors/wallpaper.md) | Yes|List of wallpapers|
### Type: [Wallpapers](../types/Wallpapers.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$wallpapers = ['_' => 'wallpapers', 'wallpapers' => [wallpaper]];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "wallpapers", "wallpapers": [wallpaper]}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
wallpapers={_='wallpapers', wallpapers={wallpaper}}
```