mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-04 02:28:31 +01:00
34 lines
1.0 KiB
Markdown
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];
|
||
|
```
|