채팅 Accessory 객체의 빌더입니다.
액세서리 위젯은 메시지 하단에 표시되는 대화형 위젯입니다.
Google Chat을 확장하는 Google Workspace 부가기능에서 사용할 수 있습니다.
const widget = CardService.newButtonSet() .addButton(CardService.newImageButton() .setIcon(CardService.Icon.PHONE) .setOnClickAction(CardService.newAction() .setFunctionName("phone"))) .addButton(CardService.newTextButton() .setText("Robot") .setIconUrl("https://developers.google.com/chat/images/quickstart-app-avatar.png") .setOnClickAction(CardService.newAction() .setFunctionName("robot"))); const accessoryWidget = AddOnsResponseService.newAccessoryWidget() .addWidget(widget);
메서드
| 메서드 | 반환 유형 | 간략한 설명 |
|---|---|---|
add | Accessory | 이 작업의 위젯을 설정합니다. |