mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
always set webhook_url
This commit is contained in:
parent
48eb623f15
commit
c0dd9c6ffc
1 changed files with 4 additions and 4 deletions
|
@ -301,11 +301,11 @@ 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)
|
||||
if not webhook_url:
|
||||
webhook_url = self._gen_webhook_url(listen, port, url_path)
|
||||
|
||||
self._set_webhook(webhook_url, bootstrap_retries,
|
||||
open(cert, 'rb'))
|
||||
self._set_webhook(webhook_url, bootstrap_retries,
|
||||
open(cert, 'rb') if use_ssl else None)
|
||||
|
||||
self.httpd.serve_forever(poll_interval=1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue