tgbot-cpp
Loading...
Searching...
No Matches
WebhookInfo.h
Go to the documentation of this file.
1#ifndef TGBOT_WEBHOOKINFO_H
2#define TGBOT_WEBHOOKINFO_H
3
4#include <cstdint>
5#include <memory>
6#include <string>
7#include <vector>
8
9namespace TgBot {
10
17public:
18 typedef std::shared_ptr<WebhookInfo> Ptr;
19
23 std::string url;
24
29
33 std::int32_t pendingUpdateCount;
34
38 std::string ipAddress;
39
43 std::int32_t lastErrorDate;
44
48 std::string lastErrorMessage;
49
54
58 std::int32_t maxConnections;
59
63 std::vector<std::string> allowedUpdates;
64};
65}
66
67#endif //TGBOT_WEBHOOKINFO_H
Contains information about the current status of a webhook.
Definition WebhookInfo.h:16
std::int32_t maxConnections
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery...
Definition WebhookInfo.h:58
std::shared_ptr< WebhookInfo > Ptr
Definition WebhookInfo.h:18
std::string ipAddress
Optional. Currently used webhook IP address.
Definition WebhookInfo.h:38
std::string lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
Definition WebhookInfo.h:48
std::string url
Webhook URL, may be empty if webhook is not set up.
Definition WebhookInfo.h:23
std::int32_t lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webh...
Definition WebhookInfo.h:43
std::vector< std::string > allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chatMe...
Definition WebhookInfo.h:63
std::int32_t pendingUpdateCount
Number of updates awaiting delivery.
Definition WebhookInfo.h:33
std::int32_t lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updat...
Definition WebhookInfo.h:53
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
Definition WebhookInfo.h:28
Definition Api.h:39