TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
inputAudio Class Referencefinal

Inherits Object.

Description

An audio to be sent.

Public Member Functions

 inputAudio ()
 
 inputAudio (object_ptr< InputFile > &&audio_, object_ptr< inputThumbnail > &&album_cover_thumbnail_, int32 duration_, string const &title_, string const &performer_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< inputThumbnail > album_cover_thumbnail_
 Thumbnail of the cover for the album; pass null to skip thumbnail uploading.
 
object_ptr< InputFile > audio_
 Audio file to be sent.
 
int32 duration_
 Duration of the audio, in seconds; may be replaced by the server.
 
string performer_
 Performer of the audio; 0-64 characters, may be replaced by the server.
 
string title_
 Title of the audio; 0-64 characters; may be replaced by the server.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputAudio() [1/2]

An audio to be sent.

◆ inputAudio() [2/2]

inputAudio ( object_ptr< InputFile > &&  audio_,
object_ptr< inputThumbnail > &&  album_cover_thumbnail_,
int32  duration_,
string const &  title_,
string const &  performer_ 
)

An audio to be sent.

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.

Member Function 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: