google_chat
google_chat
¶
GoogleChatChannel — Google Chat webhook adapter.
Classes¶
GoogleChatChannel
¶
GoogleChatChannel(
webhook_url: str = "", *, bus: Optional[EventBus] = None
)
Bases: BaseChannel
Google Chat webhook channel adapter (send-only).
| PARAMETER | DESCRIPTION |
|---|---|
webhook_url
|
Google Chat incoming webhook URL. Falls back to
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/diapason/channels/google_chat.py
Methods:¶
connect
¶
Mark as connected (send-only — no persistent connection).
Source code in src/diapason/channels/google_chat.py
disconnect
¶
send
¶
send(
channel: str,
content: str,
*,
conversation_id: str = "",
metadata: Dict[str, Any] | None = None,
) -> bool
Send a message to Google Chat via the configured webhook URL.
Source code in src/diapason/channels/google_chat.py
status
¶
status() -> ChannelStatus