mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
revert c0dd9c6
This commit is contained in:
parent
7c8a0e00c0
commit
2f7cccfc9f
1 changed files with 5 additions and 4 deletions
|
@ -301,11 +301,12 @@ class Updater(object):
|
|||
if use_ssl:
|
||||
self._check_ssl_cert(cert, key)
|
||||
|
||||
if not webhook_url:
|
||||
webhook_url = self._gen_webhook_url(listen, port, url_path)
|
||||
# DO NOT CHANGE: Only set webhook if SSL is handled by library
|
||||
if not webhook_url:
|
||||
webhook_url = self._gen_webhook_url(listen, port, url_path)
|
||||
|
||||
self._set_webhook(webhook_url, bootstrap_retries,
|
||||
open(cert, 'rb') if use_ssl else None)
|
||||
self._set_webhook(webhook_url, bootstrap_retries,
|
||||
open(cert, 'rb'))
|
||||
|
||||
self.httpd.serve_forever(poll_interval=1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue