Skip to main content
Version: v2

Button

Button. One of the fields is populated depending on the button type.

commandButton object

Command button

displayTextstringrequired

Text on the button

Example: Press the button
commandKeystringrequired

Command sent when the button is pressed

Example: /button_pushed
linkButton object
displayTextstringrequired

Text on the button

Example: Press the button
linkstringrequired

Link opened when the button is pressed

Example: https://www.yuchat.ai
Button
{
"commandButton": {
"displayText": "Press the button",
"commandKey": "/button_pushed"
},
"linkButton": {
"displayText": "Press the button",
"link": "https://www.yuchat.ai"
}
}