From 83ced1b9a0b66a0c2dcd03e812126c44202f0c31 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 4 Nov 2018 23:13:00 +0530 Subject: [PATCH] Fix webhook --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 58f4d36..a2d29fd 100644 --- a/bot.py +++ b/bot.py @@ -505,6 +505,6 @@ if config.update_method == "polling": updater.start_polling() elif config.update_method == "webhook": updater.start_webhook(listen=config.webhook["listen"], - url=config.webhook["url_path"], + url_path=config.webhook["url_path"], port=config.webhook["port"]) - updater.set_webhook(webhook_url=config.webhook["url"]) + updater.bot.set_webhook(url=config.webhook["url"])