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

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. https://core.telegram.org/bots/api#passportelementerrordatafield. More...

#include <PassportElementError.hpp>

Inheritance diagram for tgbotxx::PassportElementErrorDataField:
tgbotxx::PassportElementError

Public Member Functions

 PassportElementErrorDataField ()
 
 PassportElementErrorDataField (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON. More...
 
- Public Member Functions inherited from tgbotxx::PassportElementError
 PassportElementError ()=default
 
 PassportElementError (const nl::json &json)
 

Public Attributes

std::string fieldName
 Name of the data field which has the error. More...
 
std::string dataHash
 Base64-encoded data hash. More...
 
std::string message
 Error message. More...
 
- Public Attributes inherited from tgbotxx::PassportElementError
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

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. https://core.telegram.org/bots/api#passportelementerrordatafield.

Definition at line 54 of file PassportElementError.hpp.

Constructor & Destructor Documentation

◆ PassportElementErrorDataField() [1/2]

tgbotxx::PassportElementErrorDataField::PassportElementErrorDataField ( )
inline

Definition at line 55 of file PassportElementError.hpp.

◆ PassportElementErrorDataField() [2/2]

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

Definition at line 58 of file PassportElementError.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::PassportElementErrorDataField::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::PassportElementError.

Definition at line 79 of file PassportElementError.hpp.

◆ toJson()

nl::json tgbotxx::PassportElementErrorDataField::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PassportElementError.

Definition at line 72 of file PassportElementError.hpp.

Member Data Documentation

◆ dataHash

std::string tgbotxx::PassportElementErrorDataField::dataHash

Base64-encoded data hash.

Definition at line 67 of file PassportElementError.hpp.

◆ fieldName

std::string tgbotxx::PassportElementErrorDataField::fieldName

Name of the data field which has the error.

Definition at line 64 of file PassportElementError.hpp.

◆ message

std::string tgbotxx::PassportElementErrorDataField::message

Error message.

Definition at line 70 of file PassportElementError.hpp.


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