MadelineProtoDocs/old_docs/API_docs_v8/constructors/documentAttributeSticker.md

40 lines
900 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: documentAttributeSticker
description: Defines a sticker
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: documentAttributeSticker
[Back to constructors index](index.md)
Defines a sticker
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|alt|[string](../types/string.md) | Yes|Alternative emoji representation of sticker|
|stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|Associated stickerset|
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example:
```php
$documentAttributeSticker = ['_' => 'documentAttributeSticker', 'alt' => 'string', 'stickerset' => InputStickerSet];
```
Or, if you're into Lua:
```lua
documentAttributeSticker={_='documentAttributeSticker', alt='string', stickerset=InputStickerSet}
```