1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 13:46:54 +01:00
MadelineProto/docs/TD_docs/constructors/stickerSetInfo.md

54 lines
1.9 KiB
Markdown
Raw Normal View History

---
title: stickerSetInfo
description: Represents short information about sticker set
---
## Constructor: stickerSetInfo
[Back to constructors index](index.md)
Represents short information about sticker set
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|id|[long](../types/long.md) | Yes|Sticker set identifier|
|title|[string](../types/string.md) | Yes|Title of the sticker set|
|name|[string](../types/string.md) | Yes|Name of the sticker set|
|is\_installed|[Bool](../types/Bool.md) | Yes|True if sticker set is installed by logged in user|
|is\_archived|[Bool](../types/Bool.md) | Yes|True if sticker set is archived|
|is\_official|[Bool](../types/Bool.md) | Yes|True if sticker set is official|
|is\_masks|[Bool](../types/Bool.md) | Yes|True if stickers in the set are masks|
|is\_viewed|[Bool](../types/Bool.md) | Yes|True for viewed trending sticker set|
|size|[int](../types/int.md) | Yes|Total number of stickers in the set|
|covers|Array of [sticker](../constructors/sticker.md) | Yes|Up to 5 first stickers from the set depending on the context|
### Type: [StickerSetInfo](../types/StickerSetInfo.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$stickerSetInfo = ['_' => 'stickerSetInfo', 'id' => long, 'title' => 'string', 'name' => 'string', 'is_installed' => Bool, 'is_archived' => Bool, 'is_official' => Bool, 'is_masks' => Bool, 'is_viewed' => Bool, 'size' => int, 'covers' => [sticker]];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "stickerSetInfo", "id": long, "title": "string", "name": "string", "is_installed": Bool, "is_archived": Bool, "is_official": Bool, "is_masks": Bool, "is_viewed": Bool, "size": int, "covers": [sticker]}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
stickerSetInfo={_='stickerSetInfo', id=long, title='string', name='string', is_installed=Bool, is_archived=Bool, is_official=Bool, is_masks=Bool, is_viewed=Bool, size=int, covers={sticker}}
```