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
feat(types): Add quote message property to message types
There are two types of message that can quote a past message: text and
sticker. This commit adds the `quotedMessageId` property to the
TextMessage and StickerMessage types.
It also adds the `quoteToken` property to the QuotableMessage type which
is implemented by the TextEventMessage, StickerEventMessage,
ImageEventMessage, and VideoEventMessage types.
Following partial responses are the examples of the quote message I have
received from LINE.
TextEventMessage
message: {
type: 'text',
id: '739816233962536',
quoteToken: 'SiLB-hQpo03eYKs8QIUZXIdkXd5jQ18WpElOf1F9Vgy0h403Cj-5o6nVoogKbwMrNz9z29TJEo6882_oXlMeAFtj3xGvl_JTH5sXzaVJJhDwUY6MBpNZivMkfzvqSRUkEz2DHA7D0cEw',
text: 'test'
}
StickerEventMessage
message: {
type: 'sticker',
id: '739858565045032',
quoteToken: 'Tob7KynRFeGiGl5ekRqTXW0brLv5lG9RJBCatcYUk6oUVGJEEJoseFuayl0Dli2UxYwD7Rf2NlhEVmaPlWYcCMmogeXBIb-K3oC392WY7Gy1ZFQLVNhSjRR_uuqSOd5_aua5Zu33Jq2w',
stickerId: '8768850',
packageId: '781128',
stickerResourceType: 'STATIC',
keywords: [ 'Surprised', '!!' ]
}
ImageEventMessage
message: {
type: 'image',
id: '739846531591299',
quoteToken: 'iSxGqzgbGvHXpPaBaJC86_xsZJOWID-UXSz2d1kTINipV30OYIKRxYLshDS6T6uretaPWpdM2tde04yHRB89jiKxJpxDl_Ux9lF6bzOumalBs4JC7-mjT2V-wJzWod_03dk7iS9qrO1A',
contentProvider: { type: 'line' }
}
VideoEventMessage
message: {
type: 'video',
id: '739859176903919',
quoteToken: 'OowxxHrmCNg2scypnPnfo5SA4wGY4VkQbQbXd2PseyJmd_hIoEPQG-pJyCKo17HcP3rrCxierp03h0hWkrZgcuxjcoKD5O44cuI9d28AecRnEuBq88jAwWFBJdhBXbEjp77p21hT5Anw',
duration: 2168,
contentProvider: { type: 'line' }
}
News:
https://developers.line.biz/en/news/2023/09/14/send-and-receive-quote-messages-using-the-messaging-api/Resolve#461
0 commit comments