1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update webhook_flask_heroku_echo.py

This commit is contained in:
Dmitry 2016-05-25 01:44:09 +06:00
parent d84aa796c0
commit e87907f0b8

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