Link Search Menu Expand Document

Constructor: documentAttributeAudio

Back to constructors index

Represents an audio file

Attributes:

NameTypeRequiredDescription
voiceBoolOptionalWhether this is a voice message
durationintOptionalDuration in seconds
titlestringOptionalName of song
performerstringOptionalPerformer
waveformwaveformOptional

Type: DocumentAttribute

Example:

$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'duration' => int, 'title' => 'string', 'performer' => 'string', 'waveform' => waveform];