webhook docstring

This commit is contained in:
2022-05-15 18:20:26 +03:00
parent 9b5376851a
commit 46f476a0e5
+3
View File
@@ -15,6 +15,9 @@ def index():
@app.route(WEBHOOK_URL_PATH, methods=["GET"])
def webhook():
"""
sets the bot webhook
"""
if flask.request.headers.get("content-type") == "application/json":
json_string = flask.request.get_data().decode("utf-8")
update = telebot.types.Update.de_json(json_string)