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

Inherits DraftMessageContent.

Description

A video note message draft.

Public Member Functions

 draftMessageContentVideoNote ()
 draftMessageContentVideoNote (string const &file_path_, int32 duration_, int32 length_, 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 video, in seconds; 0-60.
string file_path_
 Path to the file with the video note.
int32 length_
 Video width and height; must be positive and not greater than 640.
object_ptr< MessageSelfDestructType > self_destruct_type_
 Video note self-destruct type; may be null if none; pass null if none; private chats only.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ draftMessageContentVideoNote() [1/2]

draftMessageContentVideoNote ( )

A video note message draft.

◆ draftMessageContentVideoNote() [2/2]

draftMessageContentVideoNote ( string const & file_path_,
int32 duration_,
int32 length_,
object_ptr< MessageSelfDestructType > && self_destruct_type_ )

A video note message draft.

Parameters
[in]file_path_Path to the file with the video note.
[in]duration_Duration of the video, in seconds; 0-60.
[in]length_Video width and height; must be positive and not greater than 640.
[in]self_destruct_type_Video 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: