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 an animation file (GIF or H.264/MPEG-4 AVC video without sound)....
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Animation(const nl::json &json)
Ptr< PhotoSize > thumbnail
Optional. Animation thumbnail as defined by sender.
std::int64_t fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::int32_t width
Video width as defined by sender.
std::int32_t duration
Duration of the video in seconds as defined by sender.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::string mimeType
Optional. MIME type of the file as defined by sender.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t height
Video height as defined by sender.
std::string fileName
Optional. Original animation filename as defined by sender.
void fromJson(const nl::json &json)
Deserializes this object from JSON.