tgbot-cpp
Loading...
Searching...
No Matches
TgBot::VideoQuality Struct Reference

This object represents a video file of a specific quality. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<VideoQuality>

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::optional< 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.

Definition at line 15235 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::VideoQuality::Ptr = std::shared_ptr<VideoQuality>

Definition at line 15236 of file Types.h.

Member Data Documentation

◆ codec

std::string TgBot::VideoQuality::codec { }

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

Definition at line 15262 of file Types.h.

◆ fileId

std::string TgBot::VideoQuality::fileId { }

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

Definition at line 15241 of file Types.h.

◆ fileSize

std::optional<std::int64_t> TgBot::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 15270 of file Types.h.

◆ fileUniqueId

std::string TgBot::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 15247 of file Types.h.

◆ height

std::int32_t TgBot::VideoQuality::height { }

Video height.

Definition at line 15257 of file Types.h.

◆ width

std::int32_t TgBot::VideoQuality::width { }

Video width.

Definition at line 15252 of file Types.h.


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