rocketchat_channel
rocketchat_channel
¶
RocketChatChannel — Rocket.Chat adapter via rocketchat_API.
Classes¶
RocketChatChannel
¶
RocketChatChannel(url: str = '', *, user: str = '', password: str = '', auth_token: str = '', user_id: str = '', bus: Optional[EventBus] = None)
Bases: BaseChannel
Rocket.Chat messaging channel adapter.
Uses the Rocket.Chat REST API via rocketchat_API.
| PARAMETER | DESCRIPTION |
|---|---|
url
|
Rocket.Chat server URL. Falls back to
TYPE:
|
user
|
Rocket.Chat username. Falls back to
TYPE:
|
password
|
Rocket.Chat password. Falls back to
TYPE:
|
auth_token
|
Rocket.Chat auth token (alternative to password). Falls back to
TYPE:
|
user_id
|
Rocket.Chat user ID (used with auth_token). Falls back to
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/rocketchat_channel.py
Functions¶
connect
¶
Validate credentials and mark as connected.
Source code in src/openjarvis/channels/rocketchat_channel.py
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Send a message to a Rocket.Chat channel or DM.
| PARAMETER | DESCRIPTION |
|---|---|
channel
|
Rocket.Chat channel name or room ID.
TYPE:
|
content
|
Text message content.
TYPE:
|
Source code in src/openjarvis/channels/rocketchat_channel.py
status
¶
status() -> ChannelStatus