You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/types.ts
+109Lines changed: 109 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -258,6 +258,13 @@ export type TextMessage = {
258
258
* Max: 2000 characters
259
259
*/
260
260
text: string;
261
+
/**
262
+
* These properties are used for the quick reply feature.
263
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
264
+
*
265
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
266
+
*/
267
+
quickReply?: QuickReply;
261
268
};
262
269
263
270
/**
@@ -283,6 +290,13 @@ export type ImageMessage = {
283
290
* - Max: 1 MB
284
291
*/
285
292
previewImageUrl: string;
293
+
/**
294
+
* These properties are used for the quick reply feature.
295
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
296
+
*
297
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
298
+
*/
299
+
quickReply?: QuickReply;
286
300
};
287
301
288
302
/**
@@ -310,6 +324,13 @@ export type VideoMessage = {
310
324
* - Max: 1 MB
311
325
*/
312
326
previewImageUrl: string;
327
+
/**
328
+
* These properties are used for the quick reply feature.
329
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
330
+
*
331
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
332
+
*/
333
+
quickReply?: QuickReply;
313
334
};
314
335
315
336
/**
@@ -330,6 +351,13 @@ export type AudioMessage = {
330
351
* Length of audio file (milliseconds)
331
352
*/
332
353
duration: number;
354
+
/**
355
+
* These properties are used for the quick reply feature.
356
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
357
+
*
358
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
359
+
*/
360
+
quickReply?: QuickReply;
333
361
};
334
362
335
363
/**
@@ -347,6 +375,13 @@ export type LocationMessage = {
347
375
address: string;
348
376
latitude: number;
349
377
longitude: number;
378
+
/**
379
+
* These properties are used for the quick reply feature.
380
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
381
+
*
382
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
383
+
*/
384
+
quickReply?: QuickReply;
350
385
};
351
386
352
387
/**
@@ -364,6 +399,13 @@ export type StickerMessage = {
364
399
* For a list of sticker IDs for stickers that can be sent with the Messaging API, see the [Sticker list](https://developers.line.me/media/messaging-api/sticker_list.pdf).
365
400
*/
366
401
stickerId: string;
402
+
/**
403
+
* These properties are used for the quick reply feature.
404
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
405
+
*
406
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
407
+
*/
408
+
quickReply?: QuickReply;
367
409
};
368
410
369
411
/**
@@ -384,6 +426,13 @@ export type ImageMapMessage = {
384
426
* Action when tapped (Max: 50)
385
427
*/
386
428
actions: ImageMapAction[];
429
+
/**
430
+
* These properties are used for the quick reply feature.
431
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
432
+
*
433
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
434
+
*/
435
+
quickReply?: QuickReply;
387
436
};
388
437
389
438
/**
@@ -408,6 +457,13 @@ export type TemplateMessage = {
408
457
* A [Buttons](https://developers.line.me/en/reference/messaging-api/#buttons), [Confirm](https://developers.line.me/en/reference/messaging-api/#confirm), [Carousel](https://developers.line.me/en/reference/messaging-api/#carousel), or [Image Carousel](https://developers.line.me/en/reference/messaging-api/#image-carousel) object.
409
458
*/
410
459
template: TemplateContent;
460
+
/**
461
+
* These properties are used for the quick reply feature.
462
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
463
+
*
464
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
465
+
*/
466
+
quickReply?: QuickReply;
411
467
};
412
468
413
469
/**
@@ -421,6 +477,13 @@ export type FlexMessage = {
421
477
type: "flex";
422
478
altText: string;
423
479
contents: FlexContainer;
480
+
/**
481
+
* These properties are used for the quick reply feature.
482
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
483
+
*
484
+
* If the user receives multiple [message objects](https://developers.line.me/en/reference/messaging-api/#message-objects), the quickReply property of the last message object is displayed.
485
+
*/
486
+
quickReply?: QuickReply;
424
487
};
425
488
426
489
/**
@@ -1119,6 +1182,52 @@ export type TemplateImageColumn = {
1119
1182
action: Action<{label?: string}>;
1120
1183
};
1121
1184
1185
+
/**
1186
+
* These properties are used for the [quick reply](https://developers.line.me/en/reference/messaging-api/#quick-reply) feature.
1187
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
1188
+
*/
1189
+
exporttypeQuickReply={
1190
+
/**
1191
+
* This is a container that contains [quick reply buttons](https://developers.line.me/en/reference/messaging-api/#quick-reply-button-object).
1192
+
*
1193
+
* Array of objects (Max: 13)
1194
+
*/
1195
+
items: Item[];
1196
+
};
1197
+
1198
+
/**
1199
+
* This is a quick reply option that is displayed as a button.
1200
+
* For more information, see [quick reply buttons](https://developers.line.me/en/reference/messaging-api/#quick-reply-button-object).
1201
+
*/
1202
+
exporttypeItem={
1203
+
type: "action";
1204
+
/**
1205
+
* URL of the icon that is displayed at the beginning of the button (Max: 1000 characters)
1206
+
*
1207
+
* - URL scheme: https
1208
+
* - Image format: PNG
1209
+
* - Aspect ratio: 1:1
1210
+
* - Data size: Up to 1 MB
1211
+
*
1212
+
* There is no limit on the image size. If the `action` property has a [camera action](https://developers.line.me/en/reference/messaging-api/#camera-action),
1213
+
* [camera roll action](https://developers.line.me/en/reference/messaging-api/#camera-roll-action), or [location action](https://developers.line.me/en/reference/messaging-api/#location-action), and the `imageUrl` property is not set,
1214
+
* the default icon is displayed.
1215
+
*/
1216
+
imageUrl?: string;
1217
+
/**
1218
+
* Action performed when this button is tapped. Specify an [action object](https://developers.line.me/en/reference/messaging-api/#action-objects).
1219
+
* The following is a list of the available actions:
0 commit comments