tgbot-cpp
Loading...
Searching...
No Matches
TgBot::WebhookInfo Class Reference

Contains information about the current status of a webhook. More...

#include <WebhookInfo.h>

Public Types

typedef std::shared_ptr< WebhookInfoPtr
 

Public Attributes

std::string url
 Webhook URL, may be empty if webhook is not set up.
 
bool hasCustomCertificate
 True, if a custom certificate was provided for webhook certificate checks.
 
std::int32_t pendingUpdateCount
 Number of updates awaiting delivery.
 
std::string ipAddress
 Optional. Currently used webhook IP address.
 
std::int32_t lastErrorDate
 Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook.
 
std::string lastErrorMessage
 Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
 
std::int32_t lastSynchronizationErrorDate
 Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
 
std::int32_t maxConnections
 Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
 
std::vector< std::string > allowedUpdates
 Optional. A list of update types the bot is subscribed to. Defaults to all update types except chatMember.
 

Detailed Description

Contains information about the current status of a webhook.

Definition at line 16 of file WebhookInfo.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<WebhookInfo> TgBot::WebhookInfo::Ptr

Definition at line 18 of file WebhookInfo.h.

Member Data Documentation

◆ allowedUpdates

std::vector<std::string> TgBot::WebhookInfo::allowedUpdates

Optional. A list of update types the bot is subscribed to. Defaults to all update types except chatMember.

Definition at line 63 of file WebhookInfo.h.

◆ hasCustomCertificate

bool TgBot::WebhookInfo::hasCustomCertificate

True, if a custom certificate was provided for webhook certificate checks.

Definition at line 28 of file WebhookInfo.h.

◆ ipAddress

std::string TgBot::WebhookInfo::ipAddress

Optional. Currently used webhook IP address.

Definition at line 38 of file WebhookInfo.h.

◆ lastErrorDate

std::int32_t TgBot::WebhookInfo::lastErrorDate

Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook.

Definition at line 43 of file WebhookInfo.h.

◆ lastErrorMessage

std::string TgBot::WebhookInfo::lastErrorMessage

Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.

Definition at line 48 of file WebhookInfo.h.

◆ lastSynchronizationErrorDate

std::int32_t TgBot::WebhookInfo::lastSynchronizationErrorDate

Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.

Definition at line 53 of file WebhookInfo.h.

◆ maxConnections

std::int32_t TgBot::WebhookInfo::maxConnections

Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.

Definition at line 58 of file WebhookInfo.h.

◆ pendingUpdateCount

std::int32_t TgBot::WebhookInfo::pendingUpdateCount

Number of updates awaiting delivery.

Definition at line 33 of file WebhookInfo.h.

◆ url

std::string TgBot::WebhookInfo::url

Webhook URL, may be empty if webhook is not set up.

Definition at line 23 of file WebhookInfo.h.


The documentation for this class was generated from the following file: