Skip to content

Commit

Permalink
set the webhook only once, to fix 'Too many requests, retry after 1'
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinoMensio committed Sep 7, 2017
1 parent f1ef32f commit 11c7c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 11c7c01

Please sign in to comment.