How to replace the buttons (attachment) only w/ Slack interactive buttons response

后端 未结 1 1311
不知归路
不知归路 2020-11-30 15:06

I\'ve managed to create a simple interactive button Slack app using a Google Apps Script (GAS).

I know how to replace the original message w/ the response, but I w

相关标签:
1条回答
  • 2020-11-30 15:36

    You can only replace the complete message, not just a part.

    There are two options to update the original message:

    1. Respond to the Slack request with {"replace_original": true}

    2. Use chat.update

    If your original message was not of type ephemeral you will get a copy of the original message as part of the payload from Slack in the original_message property, which can be helpful to update the exchange the original message.

    See this page in the Slack documentation as reference.

    0 讨论(0)
提交回复
热议问题