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

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

#include <PassportElementError.hpp>

Inheritance diagram for tgbotxx::PassportElementErrorReverseSide:
tgbotxx::PassportElementError

Public Member Functions

 PassportElementErrorReverseSide ()
 
 PassportElementErrorReverseSide (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 hash of the file with the front side of the document. 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 the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. https://core.telegram.org/bots/api#passportelementerrorreverseside.

Definition at line 121 of file PassportElementError.hpp.

Constructor & Destructor Documentation

◆ PassportElementErrorReverseSide() [1/2]

tgbotxx::PassportElementErrorReverseSide::PassportElementErrorReverseSide ( )
inline

Definition at line 122 of file PassportElementError.hpp.

◆ PassportElementErrorReverseSide() [2/2]

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

Definition at line 125 of file PassportElementError.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::PassportElementError.

Definition at line 142 of file PassportElementError.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PassportElementError.

Definition at line 136 of file PassportElementError.hpp.

Member Data Documentation

◆ fileHash

std::string tgbotxx::PassportElementErrorReverseSide::fileHash

Base64-encoded hash of the file with the front side of the document.

Definition at line 131 of file PassportElementError.hpp.

◆ message

std::string tgbotxx::PassportElementErrorReverseSide::message

Error message.

Definition at line 134 of file PassportElementError.hpp.


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