line_channel
line_channel
¶
LineChannel — LINE Messaging API adapter via line-bot-sdk.
Classes¶
LineChannel
¶
LineChannel(channel_access_token: str = '', *, channel_secret: str = '', bus: Optional[EventBus] = None)
Bases: BaseChannel
LINE messaging channel adapter.
Uses the LINE Messaging API via line-bot-sdk.
| PARAMETER | DESCRIPTION |
|---|---|
channel_access_token
|
LINE channel access token. Falls back to
TYPE:
|
channel_secret
|
LINE channel secret. Falls back to
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/line_channel.py
Functions¶
connect
¶
Validate credentials and mark as connected.
Source code in src/openjarvis/channels/line_channel.py
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Send a push message to a LINE user or group.
| PARAMETER | DESCRIPTION |
|---|---|
channel
|
LINE user ID or group ID to send to.
TYPE:
|
content
|
Text message content.
TYPE:
|
Source code in src/openjarvis/channels/line_channel.py
status
¶
status() -> ChannelStatus