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.TelegramObjectThis object represents a Telegram WebhookInfo.
Contains information about the current status of a webhook.
-
url¶ str– Webhook URL.
-
has_custom_certificate¶ bool– If a custom certificate was provided for webhook.
-
pending_update_count¶ int– Number of updates awaiting delivery.
-
last_error_date¶ int– Optional. Unix time for the most recent error that happened.
-
last_error_message¶ str– Optional. Error message in human-readable format.
-
max_connections¶ int– Optional. Maximum allowed number of simultaneous HTTPS connections.
-
allowed_updates¶ List[
str] – Optional. A list of update types the bot is subscribed to.
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.
-