Class Dialog

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);

방법

메서드반환 유형간략한 설명
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: 체이닝용 객체입니다.