10 explicit Video(
const nl::json& json) {
47 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object represents a video file. https://core.telegram.org/bots/api#video.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::string fileName
Optional. Original filename as defined by sender.
std::string mimeType
Optional. MIME type of the file as defined by sender.
std::int32_t duration
Duration of the video in seconds as defined by sender.
std::int32_t width
Video width as defined by sender.
Video(const nl::json &json)
std::int64_t fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
std::int32_t height
Video height as defined by sender.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....