Created
October 5, 2020 22:52
-
-
Save mwbrooks/c59c8dd2962ffca7cdc678909bddc387 to your computer and use it in GitHub Desktop.
Button click example using Bolt for Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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