詳情請參閱 Google Chat 說明文件中的「開啟互動式對話方塊」。
Dialog
物件的建構工具。
僅適用於 Google Chat 應用程式。不適用於 Google Workspace 外掛程式。
const card = CardService.newCardBuilder() .setHeader(CardService.newCardHeader().setTitle('Card title')).build(); // Sets the card of the dialog. const dialog = CardService.newDialog() .setBody(card);
方法
方法 | 傳回類型 | 簡短說明 |
---|---|---|
setBody(card) | Dialog | 設定 Dialog 的資訊卡。 |