Other
ApiCallGettable
ApiCallGettable: { [BULK_REQUEST_GETTER]: any; [CHANNEL_REQUEST_GETTER]: any }
Type declaration
[BULK_REQUEST_GETTER]:function
- [BULK_REQUEST_GETTER](ids: string[]): { body: any; method: "GET" | "POST" | "PUT" | "DELETE"; path: string }
Parameters
Returns { body: any; method: "GET" | "POST" | "PUT" | "DELETE"; path: string }
body: any
method: "GET" | "POST" | "PUT" | "DELETE"
path: string
[CHANNEL_REQUEST_GETTER]:function
- [CHANNEL_REQUEST_GETTER](channel: LineChat): { body: any; method: "GET" | "POST" | "PUT" | "DELETE"; path: string }
Parameters
Returns { body: any; method: "GET" | "POST" | "PUT" | "DELETE"; path: string }
body: any
method: "GET" | "POST" | "PUT" | "DELETE"
path: string
AudioSegmentValue
Audio
Segment
Value
: { duration
: number; originalContentUrl
: string; type
: "audio" } & QuickRepliableFailMessagingApiResult
FailMessagingApiResult: { details: { message?: string; property?: string }[]; message: string }
Type declaration
details: { message?: string; property?: string }[]
message: string
FailOAuthApiResult
FailOAuthApiResult: { error: string; error_description?: string }
Type declaration
error: string
Optional error_description?: string
FlexSegmentValue
Flex
Segment
Value
: { altText
: string; contents
: any; type
: "flex" } & QuickRepliableGroupSource
GroupSource: { groupId: string; type: "group"; userId: string }
Type declaration
groupId: string
type: "group"
userId: string
ImageSegmentValue
Image
Segment
Value
: { originalContentUrl
: string; previewImageUrl
: string; type
: "image" } & QuickRepliableImagemapSegmentValue
Imagemap
Segment
Value
: { actions
: any[]; altText
: string; baseSize
: { height
: number; width
: 1040 }; type
: "imagemap"; video
: { area
: { height
: number; width
: number; x
: number; y
: number }; externalLink
: string; label
: string; originalContentUrl
: string; previewImageUrl
: string } } & QuickRepliableLineComponent
Type parameters
LineConfigs
Type declaration
accessToken: string
channelId: string
Optional channelSecret?: string
Optional liffId?: string
Optional maxRequestConnections?: number
providerId: string
Optional shouldVerifyRequest?: boolean
Optional webhookPath?: string
LineEventContext
Type declaration
platform: "line"
reply:function
LineJob
Line
Job
: { body
: null | LineMessageRequestBody | unknown; executionKey
: undefined | string; method
: "GET" | "POST" | "PUT" | "DELETE"; path
: string }Type declaration
executionKey: undefined | string
method: "GET" | "POST" | "PUT" | "DELETE"
path: string
LineMessageRequestBody
LineMessageRequestBody: ReplyRequestBody | PushRequestBody | MulticastRequestBody
LineRawEvent
Line
Raw
Event
: { beacon
: any; joined
: any; left
: any; link
: any; message
: any; postback
: any; replyToken
: string; source
: LineSource; things
: any; timestamp
: number; type
: string }Type declaration
beacon: any
joined: any
left: any
link: any
message: any
postback: any
replyToken: string
things: any
timestamp: number
type: string
LineRawUserProfile
LineRawUserProfile: { displayName: string; language?: string; pictureUrl?: string; statusMessage?: string; userId: string }
Type declaration
displayName: string
Optional language?: string
Optional pictureUrl?: string
Optional statusMessage?: string
userId: string
LineResult
Type declaration
code: number
headers: Record<string, string>
LineWebhookRequestBody
Line
Webhook
Request
Body
: { destination
: string; events
: LineRawEvent[] }LocationSegmentValue
Location
Segment
Value
: { address
: string; latitude
: number; longitude
: number; title
: string; type
: "location" } & QuickRepliableMessagingApiResult
MessagingApiResult: Record<string, any>
QuickRepliable
QuickRepliable: { quickReply?: { items: { action: any; imageUrl: string; type: "action" }[] } }
Type declaration
Optional quickReply?: { items: { action: any; imageUrl: string; type: "action" }[] }
items: { action: any; imageUrl: string; type: "action" }[]
RoomSource
RoomSource: { roomId: string; type: "room"; userId: string }
Type declaration
roomId: string
type: "room"
userId: string
StickerSegmentValue
Sticker
Segment
Value
: { packageId
: string; stickerId
: string; type
: "sticker" } & QuickRepliableTemplateSegmentValue
Template
Segment
Value
: { altText
: string; template
: any; type
: "template" } & QuickRepliableUserSource
UserSource: { type: "user"; userId: string }
Type declaration
type: "user"
userId: string
VideoSegmentValue
Video
Segment
Value
: { originalContentUrl
: string; previewImageUrl
: string; type
: "video" } & QuickRepliable
Line Platform
Receive events and send messages through LINE messaging API.
Install
Docs
Check the platform document and the package reference.
Setup