From 11c7c018b3fc41d595453a1f77a78eba3ab4df9b Mon Sep 17 00:00:00 2001 From: Martino Mensio Date: Thu, 7 Sep 2017 10:32:36 +0200 Subject: [PATCH] set the webhook only once, to fix 'Too many requests, retry after 1' --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 87fa8e2..8ea5bbc 100644 --- a/app.py +++ b/app.py @@ -121,5 +121,5 @@ def pass_update(): UPDATE_QUEUE.put(request.data) # pass update to bot return 'OK' -BOT.setWebhook() # unset if was set previously +# set the telegram webhook BOT.setWebhook(URL + SECRET)