LineRelay
Webhook to SSE relay
Receive LINE and Telegram messages via Server-Sent Events. Register your bot, connect to the SSE endpoint, receive events in real-time. To reply, call the platform API directly.
3 relays registered
Create relay
API — LINE
POST https://linerelay.round.online/bots Content-Type: application/json { "platform": "line", "name": "My Relay", "channel_secret": "from LINE Developers", "channel_token": "from LINE Developers" }
API — Telegram
POST https://linerelay.round.online/bots Content-Type: application/json { "platform": "telegram", "name": "My Relay", "bot_token": "from @BotFather" }
Response
{
"bot_id": "a3f7b2e9k4m8n1p6",
"platform": "line",
"secret": "x8k2m...", // bearer token for SSE
"webhook_url": "https://linerelay.round.online/b/.../hook", // LINE only — set in LINE Developers
"sse_url": "https://linerelay.round.online/b/.../sse" // connect to receive events
}
Connect
curl -N -H "Authorization: Bearer <secret>" <sse_url>