Inherits InputMessageContent.
An audio message.
Public Fields | |
| object_ptr< InputFile > | audio_ |
| Audio file to be sent. | |
| object_ptr< inputThumbnail > | album_cover_thumbnail_ |
| Thumbnail of the cover for the album; pass null to skip thumbnail uploading. | |
| int32 | duration_ |
| Duration of the audio, in seconds; may be replaced by the server. | |
| string | title_ |
| Title of the audio; 0-64 characters; may be replaced by the server. | |
| string | performer_ |
| Performer of the audio; 0-64 characters, may be replaced by the server. | |
| object_ptr< formattedText > | caption_ |
| Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. | |
Public Instance Methods | |
| inputMessageAudio () | |
| inputMessageAudio (object_ptr< InputFile > &&audio_, object_ptr< inputThumbnail > &&album_cover_thumbnail_, int32 duration_, string const &title_, string const &performer_, object_ptr< formattedText > &&caption_) | |
| 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 = -626786126 |
| Identifier uniquely determining a type of the object. | |
An audio message.
| inputMessageAudio | ( | object_ptr< InputFile > && | audio_, |
| object_ptr< inputThumbnail > && | album_cover_thumbnail_, | ||
| int32 | duration_, | ||
| string const & | title_, | ||
| string const & | performer_, | ||
| object_ptr< formattedText > && | caption_ | ||
| ) |
An audio message.
| [in] | audio_ | Audio file to be sent. |
| [in] | album_cover_thumbnail_ | Thumbnail of the cover for the album; pass null to skip thumbnail uploading. |
| [in] | duration_ | Duration of the audio, in seconds; may be replaced by the server. |
| [in] | title_ | Title of the audio; 0-64 characters; may be replaced by the server. |
| [in] | performer_ | Performer of the audio; 0-64 characters, may be replaced by the server. |
| [in] | caption_ | Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. |
|
finalvirtual |