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

7
app.py
View file

@ -37,13 +37,6 @@ def download_song(message):
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:
try:
bot.polling()