0

单击是按钮

问题:当我点击“是”按钮时,按钮下方会出现一条消息,但一段时间后,该消息会自动消失。为什么?如何解决这个问题呢?代码如下:

//
app.blockAction("button-action", (req, ctx) -> {
  String value = req.getPayload().getActions().get(0).getValue(); // "button's value"
  if (req.getPayload().getResponseUrl() != null) {
    // Post a message to the same channel if it's a block in a message
    ctx.respond("You've sent " + value + " by clicking the button!");
  }
  return ctx.ack();
});
4

1 回答 1

0

该消息可能正在消失,因为它是一个短暂的消息。
在此处输入图像描述

至于为什么这是短暂的,原因在于解决方案的实施。

于 2021-08-31T07:36:07.850 回答