tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. https://core.telegram.org/bots/api#passportelementerrorfrontside. More...
#include <PassportElementError.hpp>
Public Member Functions | |
PassportElementErrorFrontSide () | |
PassportElementErrorFrontSide (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... | |
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. https://core.telegram.org/bots/api#passportelementerrorfrontside.
Definition at line 90 of file PassportElementError.hpp.
|
inline |
Definition at line 91 of file PassportElementError.hpp.
|
inlineexplicit |
Definition at line 94 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 111 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 105 of file PassportElementError.hpp.
std::string tgbotxx::PassportElementErrorFrontSide::fileHash |
Base64-encoded hash of the file with the front side of the document.
Definition at line 100 of file PassportElementError.hpp.
std::string tgbotxx::PassportElementErrorFrontSide::message |
Error message.
Definition at line 103 of file PassportElementError.hpp.