mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +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:
|
if use_ssl:
|
||||||
self._check_ssl_cert(cert, key)
|
self._check_ssl_cert(cert, key)
|
||||||
|
|
||||||
if not webhook_url:
|
if not webhook_url:
|
||||||
webhook_url = self._gen_webhook_url(listen, port, url_path)
|
webhook_url = self._gen_webhook_url(listen, port, url_path)
|
||||||
|
|
||||||
self._set_webhook(webhook_url, bootstrap_retries,
|
self._set_webhook(webhook_url, bootstrap_retries,
|
||||||
open(cert, 'rb'))
|
open(cert, 'rb') if use_ssl else None)
|
||||||
|
|
||||||
self.httpd.serve_forever(poll_interval=1)
|
self.httpd.serve_forever(poll_interval=1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue