Skip to content

Commit 2f3b3ad

Browse files
authored
Update type definition with image set (#305)
1 parent e096fe2 commit 2f3b3ad

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lib/types.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,28 @@ export type ContentProvider<WithPreview extends boolean = true> =
443443
export type ImageEventMessage = {
444444
type: "image";
445445
contentProvider: ContentProvider;
446+
/**
447+
* Object containing the number of images sent simultaneously.
448+
*/
449+
imageSet?: {
450+
/**
451+
* Image set ID. Only included when multiple images are sent simultaneously.
452+
*/
453+
id: string;
454+
/**
455+
* An index starting from 1, indicating the image number in a set of images sent simultaneously.
456+
* Only included when multiple images are sent simultaneously.
457+
* However, it won't be included if the sender is using LINE 11.15 or earlier for Android.
458+
*/
459+
index: number;
460+
/**
461+
* The total number of images sent simultaneously.
462+
* If two images are sent simultaneously, the number is 2.
463+
* Only included when multiple images are sent simultaneously.
464+
* However, it won't be included if the sender is using LINE 11.15 or earlier for Android.
465+
*/
466+
total: number;
467+
};
446468
} & EventMessageBase;
447469

448470
/**

0 commit comments

Comments
 (0)