mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 05:56:55 +01:00
1.4 KiB
1.4 KiB
title | description |
---|---|
audio | Describes audio file. Audio is usually in mp3 format |
Constructor: audio
Describes audio file. Audio is usually in mp3 format
Attributes:
Name | Type | Required | Description |
---|---|---|---|
duration | int | Yes | Duration of the audio in seconds as defined by sender |
title | string | Yes | Title of the audio as defined by sender |
performer | string | Yes | Performer of the audio as defined by sender |
file_name | string | Yes | Original name of a file as defined by sender |
mime_type | string | Yes | MIME type of a file as defined by sender |
album_cover_thumb | photoSize | Yes | Thumb of the album's cover as defined by sender. Full size thumb should be extracted from the downloaded file, nullable |
audio | file | Yes | File with the audio |
Type: Audio
Example:
$audio = ['_' => 'audio', 'duration' => int, 'title' => string, 'performer' => string, 'file_name' => string, 'mime_type' => string, 'album_cover_thumb' => photoSize, 'audio' => file, ];
Or, if you're into Lua:
audio={_='audio', duration=int, title=string, performer=string, file_name=string, mime_type=string, album_cover_thumb=photoSize, audio=file, }