MadelineProtoDocs/docs/API_docs/constructors/documentAttributeAudio.md
2024-05-01 14:53:46 +02:00

34 lines
1.0 KiB
Markdown

---
title: "documentAttributeAudio"
description: "Represents an audio file"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: documentAttributeAudio
[Back to constructors index](/API_docs/constructors/index.html)
Represents an audio file
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|voice|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a voice message|
|duration|[int](/API_docs/types/int.html) | Optional|Duration in seconds|
|title|[string](/API_docs/types/string.html) | Optional|Name of song|
|performer|[string](/API_docs/types/string.html) | Optional|Performer|
|waveform|[waveform](/API_docs/constructors/waveform.html) | Optional|
### Type: [DocumentAttribute](/API_docs/types/DocumentAttribute.html)
### Example:
```
$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'duration' => int, 'title' => 'string', 'performer' => 'string', 'waveform' => waveform];
```