|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
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>
Public Member Functions | |
| PassportElementErrorDataField () | |
| PassportElementErrorDataField (const nl::json &json) | |
| nl::json | toJson () const override |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) override |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::PassportElementError | |
| PassportElementError ()=default | |
| PassportElementError (const nl::json &json) | |
| virtual | ~PassportElementError ()=default |
Public Attributes | |
| std::string | fieldName |
| Name of the data field which has the error. | |
| std::string | dataHash |
| Base64-encoded data hash. | |
| std::string | message |
| Error message. | |
Public Attributes inherited from tgbotxx::PassportElementError | |
| std::string | source |
| Error source. | |
| std::string | type |
| The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport” | |
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 55 of file PassportElementError.hpp.
|
inline |
Definition at line 56 of file PassportElementError.hpp.
|
inlineexplicit |
Definition at line 59 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 80 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 73 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementErrorDataField::dataHash |
Base64-encoded data hash.
Definition at line 68 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementErrorDataField::fieldName |
Name of the data field which has the error.
Definition at line 65 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementErrorDataField::message |
Error message.
Definition at line 71 of file PassportElementError.hpp.