9 explicit Voice(
const nl::json& json) {
34 nl::json json = nl::json::object();
#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 voice note. https://core.telegram.org/bots/api#voice.
std::int64_t fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::string mimeType
Optional. MIME type of the file as defined by sender.
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::int32_t duration
Duration of the audio in seconds as defined by sender.
nl::json toJson() const
Serializes this object to JSON.
Voice(const nl::json &json)