Class Dialog

ダイアログ

詳しくは、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);

Methods

メソッド戻り値の型概要
setBody(card)DialogDialog のカードを設定します。

詳細なドキュメント

setBody(card)

Dialog のカードを設定します。

const card = CardService.newCardBuilder()
    .setHeader(CardService.newCardHeader().setTitle('Card title')).build();

// Sets the card of the dialog.
const dialog = CardService.newDialog()
    .setBody(card);

パラメータ

名前説明
cardCard使用する Card

リターン

Dialog - チェーン用のこのオブジェクト。