TDLib
Loading...
Searching...
No Matches
td::td_api::inputMessageAudio Class Referencefinal

Inherits td::td_api::InputMessageContent.

Public Member Functions

 inputMessageAudio ()
 
 inputMessageAudio (object_ptr< InputFile > &&audio_, object_ptr< inputThumbnail > &&album_cover_thumbnail_, int32 duration_, string const &title_, string const &performer_, object_ptr< formattedText > &&caption_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< InputFileaudio_
 Audio file to be sent.
 
object_ptr< inputThumbnailalbum_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< formattedTextcaption_
 Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
 

Static Public Attributes

static const std::int32_t ID = -626786126
 Identifier uniquely determining a type of the object.
 

Detailed Description

An audio message.

Constructor & Destructor Documentation

◆ inputMessageAudio() [1/2]

td::td_api::inputMessageAudio::inputMessageAudio ( )

An audio message.

◆ inputMessageAudio() [2/2]

td::td_api::inputMessageAudio::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.

Parameters
[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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::inputMessageAudio::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::inputMessageAudio::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.


The documentation for this class was generated from the following file: