Update webhook_flask_heroku_echo.py

This commit is contained in:
Dmitry 2016-05-25 01:44:09 +06:00
parent d84aa796c0
commit e87907f0b8
1 changed files with 2 additions and 3 deletions

View File

@ -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("/")