use deleteWebhook in Updater._bootstrap

This commit is contained in:
Jannes Höke 2017-01-16 00:00:27 +01:00
parent a1a8628c75
commit fc9f36d4db

View file

@ -328,7 +328,7 @@ class Updater(object):
try:
if clean:
# Disable webhook for cleaning
self.bot.setWebhook(webhook_url='')
self.bot.deleteWebhook()
self._clean_updates()
sleep(1)