-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Rich Messages and Payloads for Buttons and Cards #6786
Copy link
Copy link
Closed
Labels
Milestone
Description
It would be great (especially within chatbot workflows) to support interactive message buttons (like e.g. in slack https://rocket.chat/docs/developer-guides/rest-api/chat/postmessage#attachments-detail). As the slack syntax is quite straight forward, it can look analogously.
{
// some properties
"attachments": [
{
// some properties
"callback_id": "question_abc_123",
"actions": [
{
"name": "question_abc",
"text": "Yes",
"type": "button",
"value": "yes"
},
{
"name": "question_abc",
"text": "No",
"type": "button",
"value": "no"
}
]
}]
}
The answer could look like:
{
// some properties
"message": {
//some properties
"actions": [
{
"name": "question_abc",
"text": "Yes",
"type": "button",
"value": "yes"
}
],
"callback_id": "question_abc_123",
}
}
Rocket.Chat Version: 0.55.1
Running Instances:
DB Replicaset OpLog:
Node Version:
Reactions are currently unavailable