Skip to content

Commit

Permalink
setting webhook only on one worker
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinoMensio committed Sep 7, 2017
1 parent 11c7c01 commit 83f1d8b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,10 @@ def pass_update():
return 'OK'

# set the telegram webhook
BOT.setWebhook(URL + SECRET)

webhook_url = URL + SECRET

# https://github.com/nickoala/telepot/issues/165#issuecomment-256056446
if webhook_url != BOT.getWebhookInfo()['url']:
BOT.setWebhook(webhook_url)

0 comments on commit 83f1d8b

Please sign in to comment.