We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd513cd + 5906d63 commit 700b869Copy full SHA for 700b869
examples/webhook_examples/webhook_flask_echo_bot.py
@@ -48,7 +48,7 @@ def index():
48
@app.route(WEBHOOK_URL_PATH, methods=['POST'])
49
def webhook():
50
if flask.request.headers.get('content-type') == 'application/json':
51
- json_string = flask.request.get_data()
+ json_string = flask.request.get_data().decode('utf-8')
52
update = telebot.types.Update.de_json(json_string)
53
bot.process_new_messages([update.message])
54
return ''
0 commit comments