Exemple #1
0
def webhook():
    payload = request.get_data(as_text=True)
    print(payload)
    page.show_persistent_menu([Template.ButtonPostBack('SUB_LIST1', 'MENU_PAYLOAD/1'),
                           Template.ButtonPostBack('SUB_LIST2', 'MENU_PAYLOAD/2')])
    page.handle_webhook(payload,message = message_handler)

    return "ok"
Exemple #2
0
def webhook():
    payload = request.get_data(as_text=True)
    print("/webhook: payload:", payload)
    try:
        page.handle_webhook(payload)
    except TypeError:
        print("No entry/messaging in payload? Ignoring")
    return "ok"
Exemple #3
0
def webhook():
    page.handle_webhook(request.get_data(as_text=True))
    return "ok"
def webhook():
    payload = request.get_data(as_text=True)
    print(payload)
    page.handle_webhook(payload)
    return "ok"
Exemple #5
0
def webhook():
    payload = request.get_data(as_text=True)
    print(payload)
    page.handle_webhook(request.get_data(as_text=True),
                        message=received_message)
    return "ok"
Exemple #6
0
def webhook():
    payload = request.get_data(as_text=True)

    page.handle_webhook(payload, message=message_handler)

    return "ok"