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"
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"
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"
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"
def webhook(): payload = request.get_data(as_text=True) page.handle_webhook(payload, message=message_handler) return "ok"