Skip to content

Instantly share code, notes, and snippets.

@mwbrooks
Created October 5, 2020 22:52
Show Gist options
  • Save mwbrooks/c59c8dd2962ffca7cdc678909bddc387 to your computer and use it in GitHub Desktop.
Save mwbrooks/c59c8dd2962ffca7cdc678909bddc387 to your computer and use it in GitHub Desktop.
Button click example using Bolt for Python
@app.action("button_click")
def action_button_click(body, ack, say):
# Acknowledge the action
ack()
say(f"<@{body['user']['id']}> clicked the button")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment