Skip to content

google_chat

diapason.channels.google_chat

GoogleChatChannel — Google Chat webhook adapter.

GoogleChatChannel

Bases: BaseChannel

Google Chat webhook channel adapter (send-only).

Parameters

webhook_url: Google Chat incoming webhook URL. Falls back to GOOGLE_CHAT_WEBHOOK_URL env var. bus: Optional event bus for publishing channel events.

connect()

Mark as connected (send-only — no persistent connection).

disconnect()

Mark as disconnected.

list_channels()

Return available channel identifiers.

on_message(handler)

Register a callback for incoming messages.

send(channel, content, *, conversation_id='', metadata=None)

Send a message to Google Chat via the configured webhook URL.

status()

Return the current connection status.