Inherits Object.
Describes an audio file. Audio is usually in MP3 or M4A format.
Public Fields | |
int32 | duration_ |
Duration of the audio, in seconds; as defined by the sender. | |
string | title_ |
Title of the audio; as defined by the sender. | |
string | performer_ |
Performer of the audio; as defined by the sender. | |
string | file_name_ |
Original name of the file; as defined by the sender. | |
string | mime_type_ |
The MIME type of the file; as defined by the sender. | |
object_ptr< minithumbnail > | album_cover_minithumbnail_ |
The minithumbnail of the album cover; may be null. | |
object_ptr< thumbnail > | album_cover_thumbnail_ |
The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null. | |
array< object_ptr< thumbnail > > | external_album_covers_ |
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate. | |
object_ptr< file > | audio_ |
File containing the audio. | |
Public Instance Methods | |
audio () | |
audio (int32 duration_, string const &title_, string const &performer_, string const &file_name_, string const &mime_type_, object_ptr< minithumbnail > &&album_cover_minithumbnail_, object_ptr< thumbnail > &&album_cover_thumbnail_, array< object_ptr< thumbnail >> &&external_album_covers_, object_ptr< file > &&audio_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -166398841 |
Identifier uniquely determining a type of the object. | |
audio | ( | ) |
Describes an audio file. Audio is usually in MP3 or M4A format.
audio | ( | int32 | duration_, |
string const & | title_, | ||
string const & | performer_, | ||
string const & | file_name_, | ||
string const & | mime_type_, | ||
object_ptr< minithumbnail > && | album_cover_minithumbnail_, | ||
object_ptr< thumbnail > && | album_cover_thumbnail_, | ||
array< object_ptr< thumbnail >> && | external_album_covers_, | ||
object_ptr< file > && | audio_ | ||
) |
Describes an audio file. Audio is usually in MP3 or M4A format.
[in] | duration_ | Duration of the audio, in seconds; as defined by the sender. |
[in] | title_ | Title of the audio; as defined by the sender. |
[in] | performer_ | Performer of the audio; as defined by the sender. |
[in] | file_name_ | Original name of the file; as defined by the sender. |
[in] | mime_type_ | The MIME type of the file; as defined by the sender. |
[in] | album_cover_minithumbnail_ | The minithumbnail of the album cover; may be null. |
[in] | album_cover_thumbnail_ | The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null. |
[in] | external_album_covers_ | Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate. |
[in] | audio_ | File containing the audio. |
|
finalvirtual |