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::uint32_t width { }
 Video width.
std::uint32_t height { }
 Video height.
std::string codec { }
 Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
std::optional< std::uint64_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 14788 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 14789 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 14811 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 14794 of file Types.h.

◆ fileSize

std::optional<std::uint64_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 14818 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 14799 of file Types.h.

◆ height

std::uint32_t TgBot::VideoQuality::height { }

Video height.

Definition at line 14807 of file Types.h.

◆ width

std::uint32_t TgBot::VideoQuality::width { }

Video width.

Definition at line 14803 of file Types.h.


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