From e87907f0b85a8845673d2ec8a5587281c2e2e6f8 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 25 May 2016 01:44:09 +0600 Subject: [PATCH] Update webhook_flask_heroku_echo.py --- examples/webhook_examples/webhook_flask_heroku_echo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/webhook_examples/webhook_flask_heroku_echo.py b/examples/webhook_examples/webhook_flask_heroku_echo.py index dcd18e8..e16fa1d 100644 --- a/examples/webhook_examples/webhook_flask_heroku_echo.py +++ b/examples/webhook_examples/webhook_flask_heroku_echo.py @@ -17,8 +17,7 @@ def echo_message(message): @server.route("/bot", methods=['POST']) def getMessage(): bot.process_new_messages( - [telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message - ]) + [telebot.types.Update.de_json(request.stream.read().decode("utf-8")).message]) return "!", 200 @server.route("/") @@ -29,4 +28,4 @@ def webhook(): server.run(host="0.0.0.0", port=os.environ.get('PORT', 5000)) -server = Flask(__name__) \ No newline at end of file +server = Flask(__name__)