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 bc73f34 + 1da5d1e commit b8770e2Copy full SHA for b8770e2
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().decode('utf-8')
+ json_string = flask.request.get_data().encode('utf-8')
52
update = telebot.types.Update.de_json(json_string)
53
bot.process_new_messages([update.message])
54
return ''
0 commit comments