Skip to content

Commit

Permalink
Update webhook_flask_echo_bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agentik-007 committed May 16, 2016
1 parent bc73f34 commit 1da5d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/webhook_examples/webhook_flask_echo_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def index():
@app.route(WEBHOOK_URL_PATH, methods=['POST'])
def webhook():
if flask.request.headers.get('content-type') == 'application/json':
json_string = flask.request.get_data().decode('utf-8')
json_string = flask.request.get_data().encode('utf-8')
update = telebot.types.Update.de_json(json_string)
bot.process_new_messages([update.message])
return ''
Expand Down

0 comments on commit 1da5d1e

Please sign in to comment.