Fix webhook

This commit is contained in:
Ceda EI 2018-11-04 23:13:00 +05:30
parent 9d7baf5b18
commit 83ced1b9a0
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -505,6 +505,6 @@ if config.update_method == "polling":
updater.start_polling() updater.start_polling()
elif config.update_method == "webhook": elif config.update_method == "webhook":
updater.start_webhook(listen=config.webhook["listen"], updater.start_webhook(listen=config.webhook["listen"],
url=config.webhook["url_path"], url_path=config.webhook["url_path"],
port=config.webhook["port"]) port=config.webhook["port"])
updater.set_webhook(webhook_url=config.webhook["url"]) updater.bot.set_webhook(url=config.webhook["url"])