tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Describes documents or other Telegram Passport elements shared with the bot by the user. https://core.telegram.org/bots/api#encryptedpassportelement. More...
#include <EncryptedPassportElement.hpp>
Public Member Functions | |
EncryptedPassportElement ()=default | |
EncryptedPassportElement (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | type |
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”. More... | |
std::string | data |
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
std::string | phoneNumber |
Optional. User's verified phone number, available only for “phone_number” type. More... | |
std::string | |
Optional. User's verified email address, available only for “email” type. More... | |
std::vector< Ptr< PassportFile > > | files |
Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
Ptr< PassportFile > | frontSide |
Optional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
Ptr< PassportFile > | reverseSide |
Optional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
Ptr< PassportFile > | selfie |
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
std::vector< Ptr< PassportFile > > | translation |
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials. More... | |
std::string | hash |
Base64-encoded element hash for using in PassportElementErrorUnspecified. More... | |
Describes documents or other Telegram Passport elements shared with the bot by the user. https://core.telegram.org/bots/api#encryptedpassportelement.
Definition at line 8 of file EncryptedPassportElement.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file EncryptedPassportElement.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 77 of file EncryptedPassportElement.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 61 of file EncryptedPassportElement.hpp.
std::string tgbotxx::EncryptedPassportElement::data |
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 23 of file EncryptedPassportElement.hpp.
std::string tgbotxx::EncryptedPassportElement::email |
Optional. User's verified email address, available only for “email” type.
Definition at line 29 of file EncryptedPassportElement.hpp.
std::vector<Ptr<PassportFile> > tgbotxx::EncryptedPassportElement::files |
Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 34 of file EncryptedPassportElement.hpp.
Ptr<PassportFile> tgbotxx::EncryptedPassportElement::frontSide |
Optional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 39 of file EncryptedPassportElement.hpp.
std::string tgbotxx::EncryptedPassportElement::hash |
Base64-encoded element hash for using in PassportElementErrorUnspecified.
Definition at line 56 of file EncryptedPassportElement.hpp.
std::string tgbotxx::EncryptedPassportElement::phoneNumber |
Optional. User's verified phone number, available only for “phone_number” type.
Definition at line 26 of file EncryptedPassportElement.hpp.
Ptr<PassportFile> tgbotxx::EncryptedPassportElement::reverseSide |
Optional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 43 of file EncryptedPassportElement.hpp.
Ptr<PassportFile> tgbotxx::EncryptedPassportElement::selfie |
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 47 of file EncryptedPassportElement.hpp.
std::vector<Ptr<PassportFile> > tgbotxx::EncryptedPassportElement::translation |
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Definition at line 53 of file EncryptedPassportElement.hpp.
std::string tgbotxx::EncryptedPassportElement::type |
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.
Definition at line 18 of file EncryptedPassportElement.hpp.