38 nl::json
json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Serialize.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object represents a video file of a specific quality. https://core.telegram.org/bots/api#videoqu...
VideoQuality(const nl::json &json)
std::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
nl::json toJson() const
Serializes this object to JSON.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::int32_t width
Video width.
std::int32_t height
Video height.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int64_t fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...