Skip to content

@line/bot-sdkDocs


@line/bot-sdk / webhook / CallbackRequest

Type Alias: CallbackRequest

CallbackRequest: object

The request body contains a JSON object with the user ID of a bot that should receive webhook events and an array of webhook event objects.

Type declaration

destination

destination: string

User ID of a bot that should receive webhook events. The user ID value is a string that matches the regular expression, U[0-9a-f]{32}.

See

destination Documentation

events

events: Event[]

Array of webhook event objects. The LINE Platform may send an empty array that doesn't include a webhook event object to confirm communication.

See

events Documentation

Defined in

lib/webhook/model/callbackRequest.ts:18