Class GoogleChatChannelAdapter

Channel adapter for Google Chat.

Uses the googleapis package via dynamic import.

Capabilities: text, rich_text, images, buttons, threads, reactions, group_chat.

Conversation ID format:

  • Space: spaces/<spaceId> (Google Chat space name)
  • Thread: pass replyToMessageId as the thread key

Hierarchy (view full)

Constructors

Methods

  • Parameters

    • conversationId: string

    Returns Promise<{
        name?: string;
        memberCount?: number;
        isGroup: boolean;
        metadata?: Record<string, unknown>;
    }>

  • Process an incoming Google Chat webhook event. Call this from your HTTP endpoint that receives Google Chat events.

    Google Chat sends events via HTTP push to configured webhook URLs or Cloud Pub/Sub subscriptions.

    Parameters

    • event: any

    Returns Promise<void>

  • List spaces the bot is a member of.

    Returns Promise<{
        name: string;
        displayName: string;
        type: string;
    }[]>

Properties

status: ChannelConnectionStatus = 'disconnected'
connectedSince: undefined | string
errorMessage: undefined | string
platformInfo: Record<string, unknown> = {}
auth: undefined | ChannelAuthConfig & {
    params?: GoogleChatAuthParams;
}

Stored auth config so reconnect() can re-use it.

retryConfig: RetryConfig
platform: ChannelPlatform = 'google-chat'

Platform this adapter serves.

displayName: "Google Chat" = 'Google Chat'

Human-readable display name (e.g., "WhatsApp Business").

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.