1.3 KiB
1.3 KiB
title | description | image |
---|---|---|
documentAttributeAudio | Document attribute audio | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: documentAttributeAudio
Document attribute audio
Attributes:
Name | Type | Required | Description |
---|---|---|---|
voice | Bool | Optional | Voice? |
duration | int | Optional | Duration |
title | string | Optional | Title |
performer | string | Optional | Performer |
waveform | bytes | Optional | Waveform |
Type: DocumentAttribute
Example:
$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'duration' => int, 'title' => 'string', 'performer' => 'string', 'waveform' => 'bytes'];
PWRTelegram json-encoded version:
{"_": "documentAttributeAudio", "voice": Bool, "duration": int, "title": "string", "performer": "string", "waveform": {"_": "bytes", "bytes":"base64 encoded bytes"}}
Or, if you're into Lua:
documentAttributeAudio={_='documentAttributeAudio', voice=Bool, duration=int, title='string', performer='string', waveform='bytes'}