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

Inherits td::td_api::InputStoryContent.

Public Member Functions

 inputStoryContentVideo ()
 
 inputStoryContentVideo (object_ptr< InputFile > &&video_, array< int32 > &&added_sticker_file_ids_, double duration_, bool is_animation_)
 
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

object_ptr< InputFilevideo_
 Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with x265 codec and key frames added each second.
 
array< int32added_sticker_file_ids_
 File identifiers of the stickers added to the video, if applicable.
 
double duration_
 Precise duration of the video, in seconds; 0-60.
 
bool is_animation_
 True, if the video has no sound.
 

Static Public Attributes

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

Detailed Description

A video story.

Constructor & Destructor Documentation

◆ inputStoryContentVideo() [1/2]

td::td_api::inputStoryContentVideo::inputStoryContentVideo ( )

A video story.

◆ inputStoryContentVideo() [2/2]

td::td_api::inputStoryContentVideo::inputStoryContentVideo ( object_ptr< InputFile > &&  video_,
array< int32 > &&  added_sticker_file_ids_,
double  duration_,
bool  is_animation_ 
)

A video story.

Parameters
[in]video_Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with x265 codec and key frames added each second.
[in]added_sticker_file_ids_File identifiers of the stickers added to the video, if applicable.
[in]duration_Precise duration of the video, in seconds; 0-60.
[in]is_animation_True, if the video has no sound.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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