An Inline Menu is a structured menu rendered directly beneath a specific message in a chat. It allows users to interact with contextual options â such as buttons â tied to that individual message, creating guided and intuitive flows.
There are two ways to define an Inline Menu:
1ī¸âŖ inline_menu
(Message-bound Menu)
You can define the menu inline inside the send message methods using the
inline_menu
field.- The menu is exclusive to that specific message.
- It cannot be reused by other messages.
- Ideal for single-use, contextual interactions (e.g., approve, select, respond).
2ī¸âŖ setChatMenu
(Provisioned Menus)
You can define reusable menus using the
setChatMenu
method.- These menus are provisioned globally for the chat (user, group, or channel).
- Once provisioned, a menu can be used:
- As a Keypad Menu (linked via the Chat Navigation Button)
- As an Inline Menu, by referencing its
menu_id
in any message
đĄ Use Case Summary:
Approach | Scoped To | Reusable | Best For |
A specific message | â No | One-off, contextual interactions | |
The entire chat | â
Yes | Reusable menus, navigation, form flows |
Use the
menuCallback
method to receive incoming callback event triggered when a user interacts with a cell within an Inline Menu attached to a specific message.