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
+22-72Lines changed: 22 additions & 72 deletions
Original file line number
Diff line number
Diff line change
@@ -244,10 +244,23 @@ export type Message =
244
244
|TemplateMessage
245
245
|FlexMessage;
246
246
247
+
/**
248
+
* @see [Common properties for messages](https://developers.line.me/en/reference/messaging-api/#common-properties-for-messages)
249
+
*/
250
+
exporttypeMessageCommon={
251
+
/**
252
+
* For the quick reply feature.
253
+
* For more information, see [Using quick replies](https://developers.line.me/en/docs/messaging-api/using-quick-reply/).
254
+
*
255
+
* 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.
* Message text. You can include the following emoji:
@@ -258,19 +271,12 @@ export type TextMessage = {
258
271
* Max: 2000 characters
259
272
*/
260
273
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.
@@ -290,19 +296,12 @@ export type ImageMessage = {
290
296
* - Max: 1 MB
291
297
*/
292
298
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.
@@ -324,19 +323,12 @@ export type VideoMessage = {
324
323
* - Max: 1 MB
325
324
*/
326
325
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.
@@ -351,19 +343,12 @@ export type AudioMessage = {
351
343
* Length of audio file (milliseconds)
352
344
*/
353
345
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.
@@ -375,19 +360,12 @@ export type LocationMessage = {
375
360
address: string;
376
361
latitude: number;
377
362
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.
@@ -399,19 +377,12 @@ export type StickerMessage = {
399
377
* 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).
400
378
*/
401
379
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.
* [Base URL](https://developers.line.me/en/reference/messaging-api/#base-url) of image (Max: 1000 characters, **HTTPS**)
@@ -426,13 +397,6 @@ export type ImageMapMessage = {
426
397
* Action when tapped (Max: 50)
427
398
*/
428
399
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;
436
400
};
437
401
438
402
/**
@@ -447,7 +411,7 @@ export type ImageMapMessage = {
@@ -457,13 +421,6 @@ export type TemplateMessage = {
457
421
* 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.
458
422
*/
459
423
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;
467
424
};
468
425
469
426
/**
@@ -473,17 +430,10 @@ export type TemplateMessage = {
* 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.
0 commit comments