Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 719 Bytes

File metadata and controls

25 lines (19 loc) · 719 Bytes

Code Example: Button Handling

Slack

app.action('button_click', async ({ action, ack }) => {
  await ack();
  console.log('Button value:', action.value);  // "button_value"
});

Zoom

if (body.event === 'interactive_message_actions') {
  const { actionItem } = body.payload;
  const data = JSON.parse(actionItem.value);
  console.log('Button action:', data.action);  // "button_click"
  console.log('Button data:', data.data);      // "button_value"
}

Key: Zoom button values are JSON-stringified objects.

Slack Docs | Zoom Docs