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

Inherits DraftMessageContent.

Description

A voice note message draft.

Public Member Functions

 draftMessageContentVoiceNote ()
 
 draftMessageContentVoiceNote (string const &file_path_, int32 duration_, bytes const &waveform_, object_ptr< MessageSelfDestructType > &&self_destruct_type_)
 
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

int32 duration_
 Duration of the voice note, in seconds.
 
string file_path_
 Path to the file with the voice note.
 
object_ptr< MessageSelfDestructType > self_destruct_type_
 Voice note self-destruct type; may be null if none; pass null if none; private chats only.
 
bytes waveform_
 Waveform representation of the voice note in 5-bit format.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ draftMessageContentVoiceNote() [1/2]

A voice note message draft.

◆ draftMessageContentVoiceNote() [2/2]

draftMessageContentVoiceNote ( string const &  file_path_,
int32  duration_,
bytes const &  waveform_,
object_ptr< MessageSelfDestructType > &&  self_destruct_type_ 
)

A voice note message draft.

Parameters
[in]file_path_Path to the file with the voice note.
[in]duration_Duration of the voice note, in seconds.
[in]waveform_Waveform representation of the voice note in 5-bit format.
[in]self_destruct_type_Voice note self-destruct type; may be null if none; pass null if none; private chats only.

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: