tgbot-cpp
Loading...
Searching...
No Matches
EncryptedPassportElement.h
Go to the documentation of this file.
1#ifndef TGBOT_ENCRYPTEDPASSPORTELEMENT_H
2#define TGBOT_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
25 std::string type;
26
32 std::string data;
33
37 std::string phoneNumber;
38
42 std::string email;
43
49 std::vector<PassportFile::Ptr> files;
50
57
64
71
77 std::vector<PassportFile::Ptr> translation;
78
82 std::string hash;
83};
84}
85
86#endif //TGBOT_ENCRYPTEDPASSPORTELEMENT_H
Describes documents or other Telegram Passport elements shared with the bot by the user.
PassportFile::Ptr reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user; available only ...
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 only for “utility_b...
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; available onl...
PassportFile::Ptr frontSide
Optional. Encrypted file with the front side of the document, provided by the user; available only fo...
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; availa...
std::shared_ptr< PassportFile > Ptr
Definition Api.h:40