tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::VideoQuality Struct Reference

This object represents a video file of a specific quality. https://core.telegram.org/bots/api#videoquality. More...

#include <VideoQuality.hpp>

Public Member Functions

 VideoQuality ()=default
 
 VideoQuality (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

std::string fileId
 Identifier for this file, which can be used to download or reuse the file.
 
std::string fileUniqueId
 Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
 
std::int32_t width {}
 Video width.
 
std::int32_t height {}
 Video height.
 
std::string codec
 Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
 
std::int64_t fileSize {}
 Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
 

Detailed Description

This object represents a video file of a specific quality. https://core.telegram.org/bots/api#videoquality.

Definition at line 7 of file VideoQuality.hpp.

Constructor & Destructor Documentation

◆ VideoQuality() [1/2]

tgbotxx::VideoQuality::VideoQuality ( )
default

◆ VideoQuality() [2/2]

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

Definition at line 9 of file VideoQuality.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::VideoQuality::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 49 of file VideoQuality.hpp.

◆ toJson()

nl::json tgbotxx::VideoQuality::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 37 of file VideoQuality.hpp.

Member Data Documentation

◆ codec

std::string tgbotxx::VideoQuality::codec

Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”

Definition at line 27 of file VideoQuality.hpp.

◆ fileId

std::string tgbotxx::VideoQuality::fileId

Identifier for this file, which can be used to download or reuse the file.

Definition at line 14 of file VideoQuality.hpp.

◆ fileSize

std::int64_t tgbotxx::VideoQuality::fileSize {}

Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.

Definition at line 32 of file VideoQuality.hpp.

◆ fileUniqueId

std::string tgbotxx::VideoQuality::fileUniqueId

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Definition at line 18 of file VideoQuality.hpp.

◆ height

std::int32_t tgbotxx::VideoQuality::height {}

Video height.

Definition at line 24 of file VideoQuality.hpp.

◆ width

std::int32_t tgbotxx::VideoQuality::width {}

Video width.

Definition at line 21 of file VideoQuality.hpp.


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