mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-10-28 07:12:16 +00:00
webhook docstring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user