28 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.
Describes data required for decrypting and authenticating EncryptedPassportElement....
nl::json toJson() const
Serializes this object to JSON.
EncryptedCredentials()=default
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
EncryptedCredentials(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
std::string hash
Base64-encoded data hash for data authentication.