Update app.py

This commit is contained in:
Víctor Martínez Montané 2019-10-15 12:14:41 +02:00 committed by GitHub
parent d428cdf140
commit 5b72e76bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
app.py
View file

@ -37,15 +37,8 @@ def download_song(message):
return filename return filename
@server.route("/")
def webhook():
bot.remove_webhook()
bot.set_webhook(url='https://cryptic-crag-46329.herokuapp.com/' + bot_token)
return "!", 200
while True: while True:
try: try:
bot.polling() bot.polling()
except Exception: except Exception:
time.sleep(15) time.sleep(15)