MadelineProtoDocs/old_docs/API_docs_v91/constructors/stickerPack.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2019-03-08 13:49:23 +01:00
---
title: stickerPack
2019-12-27 17:48:04 +01:00
description: A stickerpack is a group of stickers associated to the same emoji.
It is **not** a sticker pack the way it is usually intended, you may be looking for a [StickerSet](../types/StickerSet.md).
2019-03-08 13:49:23 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: stickerPack
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
A stickerpack is a group of stickers associated to the same emoji.
It is **not** a sticker pack the way it is usually intended, you may be looking for a [StickerSet](../types/StickerSet.md).
2019-03-08 13:49:23 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|emoticon|[string](../types/string.md) | Yes|Emoji|
2019-03-08 13:49:23 +01:00
|documents|Array of [long](../types/long.md) | Yes|Documents|
### Type: [StickerPack](../types/StickerPack.md)
### Example:
```php
$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]];
```
Or, if you're into Lua:
```lua
stickerPack={_='stickerPack', emoticon='string', documents={long}}
```