def __init__(self, url, has_custom_certificate, pending_update_count, last_error_date=None, last_error_message=None, max_connections=None, allowed_updates=None, _raw=None):
        """
        Contains information about the current status of a webhook.

        https://core.telegram.org/bots/api#webhookinfo


        Parameters:

        :param url: Webhook URL, may be empty if webhook is not set up
        :type  url: str|unicode

        :param has_custom_certificate: True, if a custom certificate was provided for webhook certificate checks
        :type  has_custom_certificate: bool

        :param pending_update_count: Number of updates awaiting delivery
        :type  pending_update_count: int


        Optional keyword parameters:

        :param last_error_date: Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
        :type  last_error_date: int

        :param last_error_message: Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
        :type  last_error_message: str|unicode

        :param max_connections: Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
        :type  max_connections: int

        :param allowed_updates: Optional. A list of update types the bot is subscribed to. Defaults to all update types
        :type  allowed_updates: list of str|unicode

        :param _raw: Optional. Original data this object was generated from. Could be `None`.
        :type  _raw: None | dict
        """
        super(WebhookInfo, self).__init__()
        assert_type_or_raise(url, unicode_type, parameter_name="url")
        self.url = url

        assert_type_or_raise(has_custom_certificate, bool, parameter_name="has_custom_certificate")
        self.has_custom_certificate = has_custom_certificate

        assert_type_or_raise(pending_update_count, int, parameter_name="pending_update_count")
        self.pending_update_count = pending_update_count

        assert_type_or_raise(last_error_date, None, int, parameter_name="last_error_date")
        self.last_error_date = last_error_date

        assert_type_or_raise(last_error_message, None, unicode_type, parameter_name="last_error_message")
        self.last_error_message = last_error_message

        assert_type_or_raise(max_connections, None, int, parameter_name="max_connections")
        self.max_connections = max_connections

        assert_type_or_raise(allowed_updates, None, list, parameter_name="allowed_updates")
        self.allowed_updates = allowed_updates

        self._raw = _raw
def __init__ ( self , url , has_custom_certificate , pending_update_count , last_error_date = None , last_error_message = None , max_connections = None , allowed_updates = None , _raw = None ) : super ( WebhookInfo , self ) . __init__ ( ) assert_type_or_raise ( url , unicode_type , parameter_name = "url" ) self . url = url assert_type_or_raise ( has_custom_certificate , bool , parameter_name = "has_custom_certificate" ) self . has_custom_certificate = has_custom_certificate assert_type_or_raise ( pending_update_count , int , parameter_name = "pending_update_count" ) self . pending_update_count = pending_update_count assert_type_or_raise ( last_error_date , None , int , parameter_name = "last_error_date" ) self . last_error_date = last_error_date assert_type_or_raise ( last_error_message , None , unicode_type , parameter_name = "last_error_message" ) self . last_error_message = last_error_message assert_type_or_raise ( max_connections , None , int , parameter_name = "max_connections" ) self . max_connections = max_connections assert_type_or_raise ( allowed_updates , None , list , parameter_name = "allowed_updates" ) self . allowed_updates = allowed_updates self . _raw = _raw
Contains information about the current status of a webhook.

        https://core.telegram.org/bots/api#webhookinfo


        Parameters:

        :param url: Webhook URL, may be empty if webhook is not set up
        :type  url: str|unicode

        :param has_custom_certificate: True, if a custom certificate was provided for webhook certificate checks
        :type  has_custom_certificate: bool

        :param pending_update_count: Number of updates awaiting delivery
        :type  pending_update_count: int


        Optional keyword parameters:

        :param last_error_date: Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
        :type  last_error_date: int

        :param last_error_message: Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
        :type  last_error_message: str|unicode

        :param max_connections: Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
        :type  max_connections: int

        :param allowed_updates: Optional. A list of update types the bot is subscribed to. Defaults to all update types
        :type  allowed_updates: list of str|unicode

        :param _raw: Optional. Original data this object was generated from. Could be `None`.
        :type  _raw: None | dict