MadelineProtoDocs/old_docs/API_docs_v18/constructors/stickerPack.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: stickerPack
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).
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: stickerPack
[Back to constructors index](index.md)
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).
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|emoticon|[string](../types/string.md) | Yes|Emoji|
|documents|Array of [long](../types/long.md) | Yes|Stickers|
### 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}}
```