Skip to main content

LINE

This is a shipped standalone native-serve surface: direct sends are implemented, the signed webhook reply loop is implemented, and the runtime stays on channels serve line instead of gateway run today.

At A Glance

FieldValue
Catalog idline
Config keyline
Implementation statusruntime_backed
Transportline_messaging_api
Aliasesline-bot
Default send target kindaddress

Minimal Config

[line]
enabled = true
channel_access_token_env = "LINE_CHANNEL_ACCESS_TOKEN"
channel_secret_env = "LINE_CHANNEL_SECRET"

Smoke Test

loong channels send line --target "U4af4980629..." --text "hello from loong"
loong channels serve line --bind 127.0.0.1:6401

Command Surface

OperationCommandUsage or status
push sendchannels send lineUsage: loong channels send line [OPTIONS] —target <TARGET> —text <TEXT>
webhook reply loopchannels serve lineUsage: loong channels serve line —bind <HOST:PORT> [—path <PATH>]

Required Fields For Send

RequirementConfig pathsEnv pointer pathsDefault env
channel enabledline.enabled
line.accounts.<account>.enabled
nonenone
channel access tokenline.channel_access_token
line.accounts.<account>.channel_access_token
line.channel_access_token_env
line.accounts.<account>.channel_access_token_env
LINE_CHANNEL_ACCESS_TOKEN

Required Fields For Serve

RequirementConfig pathsEnv pointer pathsDefault env
channel enabledline.enabled
line.accounts.<account>.enabled
nonenone
channel access tokenline.channel_access_token
line.accounts.<account>.channel_access_token
line.channel_access_token_env
line.accounts.<account>.channel_access_token_env
LINE_CHANNEL_ACCESS_TOKEN
channel secretline.channel_secret
line.accounts.<account>.channel_secret
line.channel_secret_env
line.accounts.<account>.channel_secret_env
LINE_CHANNEL_SECRET

Gateway And Ownership

This surface ships a real built-in serve loop, but it remains a standalone native-serve lane today. Use channels serve line directly; it does not join gateway run or the gateway-owned reply-loop contract yet.

Operator Notes

  • channels serve line requires --bind because the local listener address stays an explicit operator decision.
  • --path is optional when the default webhook path already matches the LINE console setup.
  • Treat this as a native serve lane, not as an outbound-only sink.
  • Continue to Channel Guides for the full shipped channel matrix.
  • Continue to Channels for the conceptual surface model.
  • Continue to Channel Setup for the shared public setup contract.