共用方式為


CardAction interface

可點選動作

屬性

channelData

與此動作相關聯的通道特定資料

displayText

如果按一下按鈕, (選擇性的) 文字顯示在聊天摘要中

image

顯示在文字標籤旁按鈕上的影像 URL

imageAltText

要用來取代欄位的 image 替代影像文字

text

此動作的文字

title

出現在按鈕上的文字描述

type

這個按鈕所實作的動作類型。 可能的值包括:'openUrl'、'imBack'、'postBack'、'playAudio'、'playVideo'、'showImage'、'downloadFile'、'signin'、'call'、messageBack'、'openApp'

value

動作的增補參數。 此屬性的內容取決於 ActionType

屬性詳細資料

channelData

與此動作相關聯的通道特定資料

channelData?: any

屬性值

any

displayText

如果按一下按鈕, (選擇性的) 文字顯示在聊天摘要中

displayText?: string

屬性值

string

image

顯示在文字標籤旁按鈕上的影像 URL

image?: string

屬性值

string

imageAltText

要用來取代欄位的 image 替代影像文字

imageAltText?: string

屬性值

string

text

此動作的文字

text?: string

屬性值

string

title

出現在按鈕上的文字描述

title: string

屬性值

string

type

這個按鈕所實作的動作類型。 可能的值包括:'openUrl'、'imBack'、'postBack'、'playAudio'、'playVideo'、'showImage'、'downloadFile'、'signin'、'call'、messageBack'、'openApp'

type: ActionTypes | string

屬性值

ActionTypes | string

value

動作的增補參數。 此屬性的內容取決於 ActionType

value: any

屬性值

any