【发布时间】:2018-05-25 01:35:54
【问题描述】:
我正在为 slackbot 创建按钮,使用类似:
const messageB = {
"attachments": [
{
"text": "Essa mensagem foi útil?",
"callback_id": "button_feedback",
"color": "#3AA3E3",
"attachment_type": "default",
"actions": [
{
"name": "button_click_yes",
"text": "sim",
"type": "button",
"value": "yes"
},
{
"name": "button_click_no",
"text": "não",
"type": "button",
"value": "no"
}
]
}
]
};
但按钮在消息发送后仍然处于活动状态,用户可以再次使用。我想停用它,或在使用后将其删除。但我在文档中的任何地方都找不到它。
【问题讨论】:
标签: node.js slack slack-api chatbot