LINE
KhunQuant connects to LINE via the LINE Messaging API. The LINEChannel adapter receives webhook events from LINE and delivers responses back through the LINE reply API.
Capabilities
- Text message send/receive
- Allow-listing by LINE user ID
Configuration
Add to ~/.khunquant/config.json:
{
"channels": {
"line": {
"enabled": true,
"channel_secret": "LINE_CHANNEL_SECRET",
"channel_access_token": "LINE_CHANNEL_ACCESS_TOKEN",
"allow_from": ["U1234567890abcdef"]
}
}
}
Add secrets to ~/.khunquant/.security.yml:
channels:
line:
channel_secret: "abc123..."
channel_access_token: "eyJhbGci..."
| Field | Type | Description |
|---|---|---|
enabled | bool | Enable the LINE channel |
channel_secret | SecureString | LINE channel secret from LINE Developers console |
channel_access_token | SecureString | Long-lived channel access token |
allow_from | []string | Allowlist of LINE user IDs |
Setup steps
- Create a Messaging API channel at LINE Developers.
- Copy the Channel secret and Channel access token.
- Add both to
.security.yml. - Configure your LINE webhook URL to point to the KhunQuant gateway (e.g.
https://your-host/webhook/line). - Start KhunQuant.
Webhook requirement
LINE requires a publicly accessible HTTPS webhook. Use a tunnel (e.g. ngrok) for local development.