tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Describes Telegram Passport data shared with the bot by the user. https://core.telegram.org/bots/api#passportdata. More...
#include <PassportData.hpp>
Public Member Functions | |
PassportData ()=default | |
PassportData (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::vector< Ptr< EncryptedPassportElement > > | data |
Array with information about documents and other Telegram Passport elements that was shared with the bot. More... | |
Ptr< EncryptedCredentials > | credentials |
Encrypted credentials required to decrypt the data. More... | |
Describes Telegram Passport data shared with the bot by the user. https://core.telegram.org/bots/api#passportdata.
Definition at line 9 of file PassportData.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file PassportData.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 31 of file PassportData.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 23 of file PassportData.hpp.
Ptr<EncryptedCredentials> tgbotxx::PassportData::credentials |
Encrypted credentials required to decrypt the data.
Definition at line 19 of file PassportData.hpp.
std::vector<Ptr<EncryptedPassportElement> > tgbotxx::PassportData::data |
Array with information about documents and other Telegram Passport elements that was shared with the bot.
Definition at line 16 of file PassportData.hpp.