Skip to content

Instantly share code, notes, and snippets.

Created Apr 25, 2016
What would you like to do?
Ein Messenger-Bot, der die Webhook-Challenge erfüllt.
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route('/testbot', methods=["GET"])
def confirm():
if request.args['hub.verify_token'] == "cd7czs87czds8chsiuh9eh3k3bcjhdbjhb":
return request.args['hub.challenge']
return 'Hello World!'
if __name__ == '__main__':
app.debug = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment