44 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
Describes the current status of a webhook. https://core.telegram.org/bots/api#webhookinfo.
std::string url
Webhook URL, may be empty if webhook is not set up.
WebhookInfo(const nl::json &json)
std::int32_t maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
std::int32_t pendingUpdateCount
Number of updates awaiting delivery.
std::time_t lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updat...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string ipAddress
Optional. Currently used webhook IP address.
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
nl::json toJson() const
Serializes this object to JSON.
std::string lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
std::vector< std::string > allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_m...
std::time_t lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webh...