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

This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: More...

#include <PassportElementError.hpp>

Inheritance diagram for tgbotxx::PassportElementError:
tgbotxx::PassportElementErrorDataField tgbotxx::PassportElementErrorFile tgbotxx::PassportElementErrorFiles tgbotxx::PassportElementErrorFrontSide tgbotxx::PassportElementErrorReverseSide tgbotxx::PassportElementErrorSelfie tgbotxx::PassportElementErrorTranslationFile tgbotxx::PassportElementErrorTranslationFiles tgbotxx::PassportElementErrorUnspecified

Public Member Functions

 PassportElementError ()=default
 
 PassportElementError (const nl::json &json)
 
virtual nl::json toJson () const
 Serializes this object to JSON. More...
 
virtual void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string source
 Error source. More...
 
std::string type
 The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport” More...
 

Detailed Description

Constructor & Destructor Documentation

◆ PassportElementError() [1/2]

tgbotxx::PassportElementError::PassportElementError ( )
default

◆ PassportElementError() [2/2]

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

Definition at line 19 of file PassportElementError.hpp.

Member Function Documentation

◆ fromJson()

◆ toJson()

Member Data Documentation

◆ source

std::string tgbotxx::PassportElementError::source

Error source.

Definition at line 24 of file PassportElementError.hpp.

◆ type

std::string tgbotxx::PassportElementError::type

The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”

Definition at line 28 of file PassportElementError.hpp.


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