tgbot-cpp
WebhookInfo.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 //
4 
5 #ifndef TGBOT_WEBHOOKINFO_H
6 #define TGBOT_WEBHOOKINFO_H
7 
8 #include <string>
9 #include <vector>
10 #include <memory>
11 
12 namespace TgBot {
13 
19 class WebhookInfo {
20 public:
21  typedef std::shared_ptr<WebhookInfo> Ptr;
22 
26  std::string url;
27 
32 
37 
41  int32_t lastErrorDate;
42 
46  std::string lastErrorMessage;
47 
51  int32_t maxConnections;
52 
56  std::vector<std::string> allowedUpdates;
57 };
58 }
59 
60 #endif //TGBOT_WEBHOOKINFO_H
Definition: Api.h:47
Contains information about the current status of a webhook.
Definition: WebhookInfo.h:19
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
Definition: WebhookInfo.h:31
std::string lastErrorMessage
Optional. Error message in human - readable format for the most recent error that happened when tryin...
Definition: WebhookInfo.h:46
int32_t lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webh...
Definition: WebhookInfo.h:41
std::shared_ptr< WebhookInfo > Ptr
Definition: WebhookInfo.h:21
int32_t pendingUpdateCount
Number of updates awaiting delivery.
Definition: WebhookInfo.h:36
std::string url
Webhook URL, may be empty if webhook is not set up.
Definition: WebhookInfo.h:26
int32_t maxConnections
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery...
Definition: WebhookInfo.h:51
std::vector< std::string > allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types...
Definition: WebhookInfo.h:56