TDLib
Loading...
Searching...
No Matches
td::td_api::videoNote Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 videoNote ()
 
 videoNote (int32 duration_, bytes const &waveform_, int32 length_, object_ptr< minithumbnail > &&minithumbnail_, object_ptr< thumbnail > &&thumbnail_, object_ptr< SpeechRecognitionResult > &&speech_recognition_result_, object_ptr< file > &&video_)
 
std::int32_t get_id () const final
 
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

int32 duration_
 Duration of the video, in seconds; as defined by the sender.
 
bytes waveform_
 A waveform representation of the video note's audio in 5-bit format; may be empty if unknown.
 
int32 length_
 Video width and height; as defined by the sender.
 
object_ptr< minithumbnailminithumbnail_
 Video minithumbnail; may be null.
 
object_ptr< thumbnailthumbnail_
 Video thumbnail in JPEG format; as defined by the sender; may be null.
 
object_ptr< SpeechRecognitionResultspeech_recognition_result_
 Result of speech recognition in the video note; may be null.
 
object_ptr< filevideo_
 File containing the video.
 

Static Public Attributes

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

Detailed Description

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.

Constructor & Destructor Documentation

◆ videoNote() [1/2]

td::td_api::videoNote::videoNote ( )

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.

◆ videoNote() [2/2]

td::td_api::videoNote::videoNote ( int32  duration_,
bytes const &  waveform_,
int32  length_,
object_ptr< minithumbnail > &&  minithumbnail_,
object_ptr< thumbnail > &&  thumbnail_,
object_ptr< SpeechRecognitionResult > &&  speech_recognition_result_,
object_ptr< file > &&  video_ 
)

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.

Parameters
[in]duration_Duration of the video, in seconds; as defined by the sender.
[in]waveform_A waveform representation of the video note's audio in 5-bit format; may be empty if unknown.
[in]length_Video width and height; as defined by the sender.
[in]minithumbnail_Video minithumbnail; may be null.
[in]thumbnail_Video thumbnail in JPEG format; as defined by the sender; may be null.
[in]speech_recognition_result_Result of speech recognition in the video note; may be null.
[in]video_File containing the video.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::videoNote::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::videoNote::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.


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