An “out-of-the-box” LINE Official Account webhook template for Cloudflare Workers.
- Signature verification (validate webhook request source)
- Reply messages
- Mark messages as read
- Message loading animation
- Create a repo from this template
Use this template=>Create a new repository- Fill in
Repository nameand other repository info
- Customize the code
- Message routing/handling:
src/eventRouter.ts - Config:
wrangler.tomlname2.secretsLINE_CHANNEL_SECRETLINE_CHANNEL_ACCESS_TOKEN-> set these usingwrangler secret putor the Cloudflare dashboard
- Message routing/handling:
- Deploy
- Cloudflare
Workers & PagesCreate applicationContinue with GitHub- Fill in the required info
| Type | Name | Description | Purpose |
|---|---|---|---|
| Secrets | LINE_CHANNEL_SECRET | LINE Official Account channel secret | Validate |
| Secrets | LINE_CHANNEL_ACCESS_TOKEN | LINE Official Account channel access token | Validate |