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

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. https://core.telegram.org/bots/api#passportelementerrorfile. More...

#include <PassportElementError.hpp>

Inheritance diagram for tgbotxx::PassportElementErrorFile:
tgbotxx::PassportElementError

Public Member Functions

 PassportElementErrorFile ()
 
 PassportElementErrorFile (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 fileHash
 Base64-encoded file 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 with a document scan. The error is considered resolved when the file with the document scan changes. https://core.telegram.org/bots/api#passportelementerrorfile.

Definition at line 183 of file PassportElementError.hpp.

Constructor & Destructor Documentation

◆ PassportElementErrorFile() [1/2]

tgbotxx::PassportElementErrorFile::PassportElementErrorFile ( )
inline

Definition at line 184 of file PassportElementError.hpp.

◆ PassportElementErrorFile() [2/2]

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

Definition at line 187 of file PassportElementError.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::PassportElementError.

Definition at line 204 of file PassportElementError.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PassportElementError.

Definition at line 198 of file PassportElementError.hpp.

Member Data Documentation

◆ fileHash

std::string tgbotxx::PassportElementErrorFile::fileHash

Base64-encoded file hash.

Definition at line 193 of file PassportElementError.hpp.

◆ message

std::string tgbotxx::PassportElementErrorFile::message

Error message.

Definition at line 196 of file PassportElementError.hpp.


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