|
tgbotxx 1.2.9.5
Telegram Bot C++ Library
|
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. | |
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.
|
default |
|
inlineexplicit |
Definition at line 9 of file VideoQuality.hpp.
Deserializes this object from JSON.
Definition at line 49 of file VideoQuality.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 37 of file VideoQuality.hpp.
| 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.
| 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.
| 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.
| 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.
| std::int32_t tgbotxx::VideoQuality::height {} |
Video height.
Definition at line 24 of file VideoQuality.hpp.
| std::int32_t tgbotxx::VideoQuality::width {} |
Video width.
Definition at line 21 of file VideoQuality.hpp.