# 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, ip_address=None, **_kwargs)

  Bases: `telegram.base.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` and `allowed_updates` are equal.

  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, except `telegram.Update.chat_member`.

  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`

  ip_address

    Optional. Currently used webhook IP address.

    Type

      `str`

  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. Defaults to all update types, except `telegram.Update.chat_member`.

    Type

      List[`str`]