34 std::vector<Ptr<PassportFile>>
files;
62 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_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.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
Describes documents or other Telegram Passport elements shared with the bot by the user....
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
std::vector< Ptr< PassportFile > > translation
Optional. Array of encrypted files with translated versions of documents provided by the user....
EncryptedPassportElement(const nl::json &json)
Ptr< PassportFile > reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user....
Ptr< PassportFile > selfie
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; availa...
std::string email
Optional. User's verified email address, available only for “email” type.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
std::string data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user,...
Ptr< PassportFile > frontSide
Optional. Encrypted file with the front side of the document, provided by the user....
nl::json toJson() const
Serializes this object to JSON.
std::string phoneNumber
Optional. User's verified phone number, available only for “phone_number” type.
EncryptedPassportElement()=default
std::vector< Ptr< PassportFile > > files
Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”,...