tgbotxx
1.1.6.9
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 nl::json | toJson () const |
Serializes this object to JSON. More... | |
virtual void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
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... | |
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.
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::PassportElementErrorUnspecified, tgbotxx::PassportElementErrorTranslationFiles, tgbotxx::PassportElementErrorTranslationFile, tgbotxx::PassportElementErrorFiles, tgbotxx::PassportElementErrorFile, tgbotxx::PassportElementErrorSelfie, tgbotxx::PassportElementErrorReverseSide, tgbotxx::PassportElementErrorFrontSide, and tgbotxx::PassportElementErrorDataField.
Definition at line 40 of file PassportElementError.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::PassportElementErrorUnspecified, tgbotxx::PassportElementErrorTranslationFiles, tgbotxx::PassportElementErrorTranslationFile, tgbotxx::PassportElementErrorFiles, tgbotxx::PassportElementErrorFile, tgbotxx::PassportElementErrorSelfie, tgbotxx::PassportElementErrorReverseSide, tgbotxx::PassportElementErrorFrontSide, and tgbotxx::PassportElementErrorDataField.
Definition at line 32 of file PassportElementError.hpp.
std::string tgbotxx::PassportElementError::source |
Error source.
Definition at line 24 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 28 of file PassportElementError.hpp.