16 std::vector<Ptr<EncryptedPassportElement>>
data;
24 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
Describes Telegram Passport data shared with the bot by the user. https://core.telegram....
nl::json toJson() const
Serializes this object to JSON.
PassportData(const nl::json &json)
std::vector< Ptr< EncryptedPassportElement > > data
Array with information about documents and other Telegram Passport elements that was shared with the ...
Ptr< EncryptedCredentials > credentials
Encrypted credentials required to decrypt the data.
void fromJson(const nl::json &json)
Deserializes this object from JSON.