telegram.WebhookInfo¶
-
class
telegram.
WebhookInfo
(url, has_custom_certificate, pending_update_count, last_error_date=None, last_error_message=None, max_connections=None, allowed_updates=None, **kwargs)¶ Bases:
telegram.base.TelegramObject
This object represents a Telegram WebhookInfo.
Contains information about the current status of a webhook.
-
url
¶ Webhook URL.
Type: str
-
has_custom_certificate
¶ If a custom certificate was provided for webhook.
Type: bool
-
pending_update_count
¶ Number of updates awaiting delivery.
Type: int
-
last_error_date
¶ Optional. Unix time for the most recent error that happened.
Type: int
-
last_error_message
¶ Optional. Error message in human-readable format.
Type: str
-
max_connections
¶ Optional. Maximum allowed number of simultaneous HTTPS connections.
Type: int
-
allowed_updates
¶ Optional. A list of update types the bot is subscribed to.
Type: List[ str
]
Parameters: - url (
str
) – Webhook URL, may be empty if webhook is not set up. - has_custom_certificate (
bool
) – True, if a custom certificate was provided for webhook certificate checks. - pending_update_count (
int
) – Number of updates awaiting delivery. - last_error_date (
int
, optional) – Unix time for the most recent error that happened when trying todeliver an update via webhook. - last_error_message (
str
, optional) – Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook. - max_connections (
int
, optional) – Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery. - allowed_updates (List[
str
], optional) – A list of update types the bot is subscribed to. Defaults to all update types.
-