Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
eternnoir authored Jul 11, 2016
1 parent d847cfb commit 3dcd59c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/webhook_examples/webhook_flask_heroku_echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,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])
bot.process_new_updates([telebot.types.Update.de_json(request.stream.read().decode("utf-8"))])
return "!", 200

@server.route("/")
Expand Down

0 comments on commit 3dcd59c

Please sign in to comment.