mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 13:26:55 +01:00
1008 B
1008 B
title | description |
---|---|
wallpaper | Contains information about one wallpaper |
Constructor: wallpaper
Contains information about one wallpaper
Attributes:
Name | Type | Required | Description |
---|---|---|---|
sizes | Array of photoSize | Yes | Available variants of wallpaper of different sizes. These photos can be only downloaded and can't be sent in a message |
color | int | Yes | Main color of wallpaper in RGB24, should be treated as background color if no photos are specified |
Type: Wallpaper
Example:
$wallpaper = ['_' => 'wallpaper', 'sizes' => [photoSize], 'color' => int];
PWRTelegram json-encoded version:
{"_": "wallpaper", "sizes": [photoSize], "color": int}
Or, if you're into Lua:
wallpaper={_='wallpaper', sizes={photoSize}, color=int}