zulip_channel
zulip_channel
¶
ZulipChannel — Zulip adapter via zulip Python bindings.
Classes¶
ZulipChannel
¶
ZulipChannel(email: str = '', *, api_key: str = '', site: str = '', zuliprc: str = '', bus: Optional[EventBus] = None)
Bases: BaseChannel
Zulip messaging channel adapter.
Uses the Zulip API via the official zulip Python package.
| PARAMETER | DESCRIPTION |
|---|---|
email
|
Zulip bot email address. Falls back to
TYPE:
|
api_key
|
Zulip bot API key. Falls back to
TYPE:
|
site
|
Zulip server URL (e.g.
TYPE:
|
zuliprc
|
Path to a
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/zulip_channel.py
Functions¶
connect
¶
Validate credentials and mark as connected.
Source code in src/openjarvis/channels/zulip_channel.py
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Send a message to a Zulip stream or user.
| PARAMETER | DESCRIPTION |
|---|---|
channel
|
Stream name for stream messages, or email address for direct messages.
TYPE:
|
content
|
Message content (Markdown supported).
TYPE:
|
Source code in src/openjarvis/channels/zulip_channel.py
status
¶
status() -> ChannelStatus