tgbot-cpp
Loading...
Searching...
No Matches
EncryptedPassportElement.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_ENCRYPTEDPASSPORTELEMENT_H
2#define TGBOT_CPP_ENCRYPTEDPASSPORTELEMENT_H
3
5
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace TgBot {
11
18
19public:
20 typedef std::shared_ptr<EncryptedPassportElement> Ptr;
21
26 std::string type;
27
32 std::string data;
33
37 std::string phoneNumber;
38
42 std::string email;
43
48 std::vector<PassportFile::Ptr> files;
49
56
63
69
75 std::vector<PassportFile::Ptr> translation;
76
80 std::string hash;
81};
82}
83
84#endif //TGBOT_CPP_ENCRYPTEDPASSPORTELEMENT_H
Contains information about documents or other Telegram Passport elements shared with the bot by the u...
PassportFile::Ptr reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user....
std::string email
Optional. User's verified email address, available only for “email” type.
std::vector< PassportFile::Ptr > files
Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”,...
std::shared_ptr< EncryptedPassportElement > Ptr
PassportFile::Ptr selfie
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; availa...
std::string phoneNumber
Optional. User's verified phone number, available only for “phone_number” type.
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
std::string data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user,...
PassportFile::Ptr frontSide
Optional. Encrypted file with the front side of the document, provided by the user....
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
std::vector< PassportFile::Ptr > translation
Optional. Array of encrypted files with translated versions of documents provided by the user....
std::shared_ptr< PassportFile > Ptr
Definition Api.h:39