tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::inputMessageAudio Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::inputMessageAudio:
td::td_api::InputMessageContent td::td_api::Object td::TlObject

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_)
 
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.

Definition at line 29088 of file td_api.h.

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

◆ 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.

Member Data Documentation

◆ album_cover_thumbnail_

object_ptr<inputThumbnail> td::td_api::inputMessageAudio::album_cover_thumbnail_

Thumbnail of the cover for the album; pass null to skip thumbnail uploading.

Definition at line 29101 of file td_api.h.

◆ audio_

object_ptr<InputFile> td::td_api::inputMessageAudio::audio_

Audio file to be sent.

Definition at line 29099 of file td_api.h.

◆ caption_

object_ptr<formattedText> td::td_api::inputMessageAudio::caption_

Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

Definition at line 29109 of file td_api.h.

◆ duration_

int32 td::td_api::inputMessageAudio::duration_

Duration of the audio, in seconds; may be replaced by the server.

Definition at line 29103 of file td_api.h.

◆ ID

const std::int32_t td::td_api::inputMessageAudio::ID = -626786126
static

Identifier uniquely determining a type of the object.

Definition at line 29129 of file td_api.h.

◆ performer_

string td::td_api::inputMessageAudio::performer_

Performer of the audio; 0-64 characters, may be replaced by the server.

Definition at line 29107 of file td_api.h.

◆ title_

string td::td_api::inputMessageAudio::title_

Title of the audio; 0-64 characters; may be replaced by the server.

Definition at line 29105 of file td_api.h.


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