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:
inline_menu (Message-bound Menu)You can define the menu inline inside the send message methods using the inline_menu field.
setChatMenu (Provisioned Menus)You can define reusable menus using the setChatMenu method.
menu_id in any message| Approach | Scoped To | Reusable | Best For |
|---|---|---|---|
inline_menu |
A specific message | ❌ No | One-off, contextual interactions |
setChatMenu |
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.