telegram.WebhookInfo¶
- class telegram.WebhookInfo(*args, **kwargs)[source]¶
Bases:
telegram.TelegramObject
This object represents a Telegram WebhookInfo.
Contains information about the current status of a webhook.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
url
,has_custom_certificate
,pending_update_count
,ip_address
,last_error_date
,last_error_message
,max_connections
,allowed_updates
andlast_synchronization_error_date
are equal.Changed in version 20.0:
last_synchronization_error_date
is considered as well when comparing objects of this type in terms of equality.- 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.ip_address (
str
, optional) – Currently used webhook IP address.last_error_date (
int
, optional) – Unix time for the most recent error that happened when trying to deliver 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, excepttelegram.Update.chat_member
.last_synchronization_error_date (
int
, optional) –Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
New in version 20.0.
- allowed_updates[source]¶
Optional. A list of update types the bot is subscribed to. Defaults to all update types, except
telegram.Update.chat_member
.- Type
List[
str
]
- last_synchronization_error_date[source]¶
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
New in version 20.0.
- Type