MadelineProtoDocs/docs/API_docs/constructors/documentAttributeAudio_46.md
2019-12-27 17:48:04 +01:00

41 lines
933 B
Markdown

---
title: documentAttributeAudio
description: Represents an audio file
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: documentAttributeAudio\_46
[Back to constructors index](index.md)
Represents an audio file
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|duration|[int](../types/int.md) | Optional|Duration in seconds|
|title|[string](../types/string.md) | Yes|Name of song|
|performer|[string](../types/string.md) | Yes|Performer|
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example:
```php
$documentAttributeAudio_46 = ['_' => 'documentAttributeAudio', 'duration' => int, 'title' => 'string', 'performer' => 'string'];
```
Or, if you're into Lua:
```lua
documentAttributeAudio_46={_='documentAttributeAudio', duration=int, title='string', performer='string'}
```