mirror of https://github.com/zulip/zulip.git
68 lines
1.6 KiB
JSON
68 lines
1.6 KiB
JSON
{
|
|
"attachments": [
|
|
{
|
|
"blocks": [
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "This is a section block with an accessory image."
|
|
},
|
|
"accessory": {
|
|
"type": "image",
|
|
"image_url": "https://pbs.twimg.com/profile_images/625633822235693056/lNGUneLX_400x400.jpg",
|
|
"alt_text": "cute cat"
|
|
}
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "This is a section block with a button."
|
|
},
|
|
"accessory": {
|
|
"type": "button",
|
|
"text": {
|
|
"type": "plain_text",
|
|
"text": "Click Me",
|
|
"emoji": true
|
|
},
|
|
"value": "click_me_123",
|
|
"action_id": "button-action"
|
|
}
|
|
},
|
|
{
|
|
"type": "section",
|
|
"fields": [
|
|
{
|
|
"type": "plain_text",
|
|
"text": "one",
|
|
"emoji": true
|
|
},
|
|
{
|
|
"type": "plain_text",
|
|
"text": "two",
|
|
"emoji": true
|
|
},
|
|
{
|
|
"type": "plain_text",
|
|
"text": "three",
|
|
"emoji": true
|
|
},
|
|
{
|
|
"type": "plain_text",
|
|
"text": "four",
|
|
"emoji": true
|
|
},
|
|
{
|
|
"type": "plain_text",
|
|
"text": "five",
|
|
"emoji": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|