logo

Inline Menu (Applies to All Outgoing Messages)

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.

Inline Menu ObjectInline Menu ObjectSending Inline Menus with Messages (Message-bound Menu)Sending Inline Menus with Messages (Message-bound Menu)menuCallback — Read inline MenumenuCallback — Read inline Menu