|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. https://core.telegram.org/bots/api#passportelementerrorselfie. More...
#include <PassportElementError.hpp>
Public Member Functions | |
| PassportElementErrorSelfie () | |
| PassportElementErrorSelfie (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 | fileHash |
| Base64-encoded hash of the file with the selfie. | |
| 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 with the selfie with a document. The error is considered resolved when the file with the selfie changes. https://core.telegram.org/bots/api#passportelementerrorselfie.
Definition at line 153 of file PassportElementError.hpp.
|
inline |
Definition at line 154 of file PassportElementError.hpp.
|
inlineexplicit |
Definition at line 157 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 174 of file PassportElementError.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::PassportElementError.
Definition at line 168 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementErrorSelfie::fileHash |
Base64-encoded hash of the file with the selfie.
Definition at line 163 of file PassportElementError.hpp.
| std::string tgbotxx::PassportElementErrorSelfie::message |
Error message.
Definition at line 166 of file PassportElementError.hpp.