List of all members | Public Fields | Public Instance Methods | Static Public Attributes
inputMessageAudio Class Referencefinal

Inherits InputMessageContent.

Description

An audio message.

Public Fields

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.
 

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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputMessageAudio() [1/2]

An audio message.

◆ inputMessageAudio() [2/2]

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.

Method Documentation

◆ store()

void 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 TlObject.


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