|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: More...
#include <PassportElementError.hpp>
Public Member Functions | |
| PassportElementError ()=default | |
| PassportElementError (const nl::json &json) | |
| virtual | ~PassportElementError ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| 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” | |
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:
Definition at line 17 of file PassportElementError.hpp.
|
default |
|
inlineexplicit |
Definition at line 19 of file PassportElementError.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::PassportElementErrorDataField, tgbotxx::PassportElementErrorFrontSide, tgbotxx::PassportElementErrorReverseSide, tgbotxx::PassportElementErrorSelfie, tgbotxx::PassportElementErrorFile, tgbotxx::PassportElementErrorFiles, tgbotxx::PassportElementErrorTranslationFile, tgbotxx::PassportElementErrorTranslationFiles, and tgbotxx::PassportElementErrorUnspecified.
Definition at line 41 of file PassportElementError.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::PassportElementErrorDataField, tgbotxx::PassportElementErrorFrontSide, tgbotxx::PassportElementErrorReverseSide, tgbotxx::PassportElementErrorSelfie, tgbotxx::PassportElementErrorFile, tgbotxx::PassportElementErrorFiles, tgbotxx::PassportElementErrorTranslationFile, tgbotxx::PassportElementErrorTranslationFiles, and tgbotxx::PassportElementErrorUnspecified.
Definition at line 33 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementError::source |
Error source.
Definition at line 25 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementError::type |
The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
Definition at line 29 of file PassportElementError.hpp.