mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +01:00
use deleteWebhook in Updater._bootstrap
This commit is contained in:
parent
a1a8628c75
commit
fc9f36d4db
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue