Appearance
@line/bot-sdk / webhook / CallbackRequest
Type Alias: CallbackRequest
CallbackRequest =
object
Defined in: lib/webhook/model/callbackRequest.ts:19
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.
See
https://developers.line.biz/en/reference/messaging-api/#request-body
Properties
destination
destination:
string
Defined in: lib/webhook/model/callbackRequest.ts:26
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}.
Min Length
33
Max Length
33
Pattern
/^U[0-9a-f]{32}$/
events
events:
Event[]
Defined in: lib/webhook/model/callbackRequest.ts:30
Array of webhook event objects. The LINE Platform may send an empty array that doesn't include a webhook event object to confirm communication.