Skip to content

Commit 0245085

Browse files
authored
Add Video viewing complete event (#241)
* add video viewing complete event
1 parent d53ceae commit 0245085

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/types.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export type WebhookEvent =
5454
| MemberJoinEvent
5555
| MemberLeaveEvent
5656
| PostbackEvent
57+
| VideoPlayCompleteEvent
5758
| BeaconEvent
5859
| AccountLinkEvent
5960
| DeviceLinkEvent
@@ -199,6 +200,18 @@ export type PostbackEvent = {
199200
postback: Postback;
200201
} & ReplyableEvent;
201202

203+
/**
204+
* Event for when a user finishes viewing a video at least once with the specified trackingId sent by the LINE Official Account.
205+
*/
206+
export type VideoPlayCompleteEvent = {
207+
type: "videoPlayComplete";
208+
/**
209+
* ID used to identify a video. Returns the same value as the trackingId assigned to the [video message](https://developers.line.biz/en/reference/messaging-api/#video-message).
210+
* String
211+
*/
212+
videoPlayComplete: { trackingId: string };
213+
} & ReplyableEvent;
214+
202215
/**
203216
* Event object for when a user enters or leaves the range of a
204217
* [LINE Beacon](https://developers.line.biz/en/docs/messaging-api/using-beacons/).

0 commit comments

Comments
 (0)