mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 10:11:20 +00:00
11 lines
293 B
TypeScript
11 lines
293 B
TypeScript
import type { webhook } from "@line/bot-sdk";
|
|
export { validateLineSignature } from "./signature.js";
|
|
|
|
export function parseLineWebhookBody(rawBody: string): webhook.CallbackRequest | null {
|
|
try {
|
|
return JSON.parse(rawBody) as webhook.CallbackRequest;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|