From 5b72e76bfbff5e98e71b114a309cb865e17db768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez=20Montan=C3=A9?= Date: Tue, 15 Oct 2019 12:14:41 +0200 Subject: [PATCH] Update app.py --- app.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app.py b/app.py index de5632c..bf3bdce 100644 --- a/app.py +++ b/app.py @@ -37,15 +37,8 @@ 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() except Exception: - time.sleep(15) \ No newline at end of file + time.sleep(15)