Skip to content

Commit 51c03e5

Browse files
committed
Add comments for handling menu action being performed
1 parent 3c37f29 commit 51c03e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tutorials/aries-basic-controller/notebooks/bob/Part 9 - Action Menu.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@
7272
"def get_menu_handler(payload):\n",
7373
" print(f\"Get Active Menu Webhook: {payload}\")\n",
7474
"\n",
75+
"'''\n",
76+
"when a menu action is performed, the handler should contain business\n",
77+
"logic to handling and executing that action specifically.\n",
78+
"'''\n",
7579
"def perform_menu_handler(payload):\n",
7680
" print(\"Perform Menu Action Webhook: \", payload)\n",
81+
" # custom business logic here\n",
7782
"\n",
7883
"get_menu_listener = {\n",
7984
" \"topic\": \"get-active-menu\",\n",

0 commit comments

Comments
 (0)