TDLib
Loading...
Searching...
No Matches
inputVoiceNote Class Referencefinal

Inherits Object.

Description

A video note to be sent.

Public Member Functions

 inputVoiceNote ()
 inputVoiceNote (object_ptr< InputFile > &&voice_note_, int32 duration_, bytes const &waveform_)
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.
object_ptr< InputFile > voice_note_
 Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio.
bytes waveform_
 Waveform representation of the voice note in 5-bit format.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputVoiceNote() [1/2]

inputVoiceNote ( )

A video note to be sent.

◆ inputVoiceNote() [2/2]

inputVoiceNote ( object_ptr< InputFile > && voice_note_,
int32 duration_,
bytes const & waveform_ )

A video note to be sent.

Parameters
[in]voice_note_Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio.
[in]duration_Duration of the voice note, in seconds.
[in]waveform_Waveform representation of the voice note in 5-bit format.

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: