Enum ResponseType

ResponseType

An enum that represents the type of Chat app response.

Only available for Google Chat apps. Not available for Google Workspace Add-ons.

To call an enum, you call its parent class, name, and property. For example, CardService.Type.DIALOG.

Properties

PropertyTypeDescription
TYPE_UNSPECIFIEDEnumDefault type that's handled as NEW_MESSAGE.
NEW_MESSAGEEnumPost as a new message in the topic.
UPDATE_MESSAGEEnumUpdate the Chat app's message. This is only permitted on a CARD_CLICKED event where the message sender type is BOT.
UPDATE_USER_MESSAGE_CARDSEnumUpdate the cards on a user's message. This is only permitted as a response to a MESSAGE event with a matched URL, or a CARD_CLICKED event where the message sender type is HUMAN. Text is ignored.
REQUEST_CONFIGEnumPrivately ask the user for additional authentication or configuration.
DIALOGEnumPresents a dialog.
UPDATE_WIDGETEnumWidget text autocomplete options query.