MadelineProtoDocs/old_docs/API_docs_v35/constructors/documentAttributeAudio.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image
documentAttributeAudio Represents an audio file https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: documentAttributeAudio

Back to constructors index

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 bytes Optional Waveform

Type: DocumentAttribute

Example:

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

Or, if you're into Lua:

documentAttributeAudio={_='documentAttributeAudio', voice=Bool, duration=int, title='string', performer='string', waveform='bytes'}