tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::InputStoryContentVideo Struct Reference

Describes a video to post as a story https://core.telegram.org/bots/api#inputstorycontentvideo. More...

#include <InputStoryContent.hpp>

Inheritance diagram for tgbotxx::InputStoryContentVideo:
tgbotxx::InputStoryContent

Public Member Functions

 InputStoryContentVideo ()
 
 InputStoryContentVideo (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::InputStoryContent
 InputStoryContent ()=default
 
 InputStoryContent (const nl::json &json)
 
virtual ~InputStoryContent ()=default
 

Public Attributes

std::string video
 The video to post as a story. Must be 720x1280, H.265, streamable, <= 30MB. Can't be reused.
 
double duration {0.0}
 Optional. Precise duration of the video in seconds; 0-60.
 
double coverFrameTimestamp {0.0}
 Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
 
bool isAnimation {false}
 Optional. True if the video has no sound.
 
- Public Attributes inherited from tgbotxx::InputStoryContent
std::string type
 Type of the story content.
 

Detailed Description

Describes a video to post as a story https://core.telegram.org/bots/api#inputstorycontentvideo.

Definition at line 64 of file InputStoryContent.hpp.

Constructor & Destructor Documentation

◆ InputStoryContentVideo() [1/2]

tgbotxx::InputStoryContentVideo::InputStoryContentVideo ( )
inline

Definition at line 65 of file InputStoryContent.hpp.

◆ InputStoryContentVideo() [2/2]

tgbotxx::InputStoryContentVideo::InputStoryContentVideo ( const nl::json &  json)
inlineexplicit

Definition at line 68 of file InputStoryContent.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InputStoryContentVideo::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputStoryContent.

Definition at line 96 of file InputStoryContent.hpp.

◆ toJson()

nl::json tgbotxx::InputStoryContentVideo::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::InputStoryContent.

Definition at line 86 of file InputStoryContent.hpp.

Member Data Documentation

◆ coverFrameTimestamp

double tgbotxx::InputStoryContentVideo::coverFrameTimestamp {0.0}

Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.

Definition at line 79 of file InputStoryContent.hpp.

◆ duration

double tgbotxx::InputStoryContentVideo::duration {0.0}

Optional. Precise duration of the video in seconds; 0-60.

Definition at line 76 of file InputStoryContent.hpp.

◆ isAnimation

bool tgbotxx::InputStoryContentVideo::isAnimation {false}

Optional. True if the video has no sound.

Definition at line 82 of file InputStoryContent.hpp.

◆ video

std::string tgbotxx::InputStoryContentVideo::video

The video to post as a story. Must be 720x1280, H.265, streamable, <= 30MB. Can't be reused.

Definition at line 73 of file InputStoryContent.hpp.


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