Event

Hangouts Chat events.

JSON representation
{
  "type": enum(EventType),
  "eventTime": string,
  "token": string,
  "threadKey": string,
  "configCompleteRedirectUrl": string,
  "message": {
    object(Message)
  },
  "user": {
    object(User)
  },
  "space": {
    object(Space)
  },
  "action": {
    object(FormAction)
  }
}
Fields
type

enum(EventType)

The type of the event.

eventTime

string (Timestamp format)

The timestamp indicating when the event was dispatched.

token

string

A secret value that bots can use to verify if a request is from Google. The token is randomly generated by Google, remains static, and can be obtained from the Hangouts Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page.

threadKey

string

The bot-defined key for the thread related to the event. See the threadKey field of the spaces.message.create request for more information.

configCompleteRedirectUrl

string

The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Hangouts Chat. See the Authorizing access to 3p services guide for more information.

message

object(Message)

The message that triggered the event.

user

object(User)

The user that triggered the event.

space

object(Space)

The room or DM in which the event occurred.

action

object(FormAction)

The form action data associated with an interactive card that was clicked. Only populated for CARD_CLICKED events. See the Interactive Cards guide for more information.

Enviar comentarios sobre...

Si necesitas ayuda, visita nuestra página de asistencia.