From 761547e71d85dcc0fbb3cfce97e3f479cb74b358 Mon Sep 17 00:00:00 2001 From: neutronnnate Date: Tue, 25 Oct 2016 11:30:05 -0600 Subject: [PATCH] Issue 422: Fixed start_polling with clean=True can cause 'Too Many Requests' error from Telegram. (#437) --- telegram/ext/updater.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telegram/ext/updater.py b/telegram/ext/updater.py index 91e184da2..c64bad23a 100644 --- a/telegram/ext/updater.py +++ b/telegram/ext/updater.py @@ -330,6 +330,7 @@ class Updater(object): # Disable webhook for cleaning self.bot.setWebhook(webhook_url='') self._clean_updates() + sleep(1) self.bot.setWebhook(webhook_url=webhook_url, certificate=cert) except (Unauthorized, InvalidToken):