tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::PassportData Struct Reference

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< EncryptedCredentialscredentials
 Encrypted credentials required to decrypt the data. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PassportData() [1/2]

tgbotxx::PassportData::PassportData ( )
default

◆ PassportData() [2/2]

tgbotxx::PassportData::PassportData ( const nl::json &  json)
inlineexplicit

Definition at line 11 of file PassportData.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::PassportData::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 31 of file PassportData.hpp.

◆ toJson()

nl::json tgbotxx::PassportData::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file PassportData.hpp.

Member Data Documentation

◆ credentials

Ptr<EncryptedCredentials> tgbotxx::PassportData::credentials

Encrypted credentials required to decrypt the data.

Definition at line 19 of file PassportData.hpp.

◆ data

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.


The documentation for this struct was generated from the following file: