def set_web_hook(self, url=None, certificate=None):
        """
            Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an
            update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized
            Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts.
        """
        payload = dict(url=url, certificate=certificate)
        return self._get('setWebHook', payload)
Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an
            update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized
            Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts.