mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.0 KiB
1.0 KiB
title | description | nav_exclude | image |
---|---|---|---|
documentAttributeAudio | Represents an audio file | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: documentAttributeAudio
Represents an audio file
Attributes:
Name | Type | Required | Description |
---|---|---|---|
voice | Bool | Optional | Whether this is a voice message |
duration | int | Optional | Duration in seconds |
title | string | Optional | Name of song |
performer | string | Optional | Performer |
waveform | waveform | Optional |
Type: DocumentAttribute
Example:
$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'duration' => int, 'title' => 'string', 'performer' => 'string', 'waveform' => waveform];