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
line/line-openapi#115
## Support for "Mark as Read" by Token API
We have released a new **Mark as Read API** that allows developers to
mark a user’s messages as read.
Previously, this functionality was available only to partners, but it is
now publicly available.
When your server receives a user message via Webhook, the `MessageEvent`
will include a new field: `markAsReadToken`.
By calling the Mark as Read API with this token, all messages in the
chat room **up to and including** that message will be marked as read.
> **Note:** This feature assumes that your service uses the chat feature
through Official Account Manager.
> If chat is not enabled, messages from users are automatically marked
as read, making this API unnecessary.
For more details, please refer to the release note:
https://developers.line.biz/en/news/2025/11/05/mark-as-read/
Co-authored-by: github-actions <[email protected]>
Copy file name to clipboardExpand all lines: lib/line/bot/v2/webhook/model/sticker_message_content.rb
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,11 @@ class StickerMessageContent < MessageContent
40
40
# @return [String] Quote token to quote this message.
41
41
attr_accessor:quote_token
42
42
# @!attribute [rw] quoted_message_id
43
-
# @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
43
+
# @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
44
44
attr_accessor:quoted_message_id
45
+
# @!attribute [rw] mark_as_read_token
46
+
# @return [String,nil] Token used to mark the message as read.
47
+
attr_accessor:mark_as_read_token
45
48
46
49
# @param id [String] Message ID
47
50
# @param package_id [String] Package ID
@@ -50,7 +53,8 @@ class StickerMessageContent < MessageContent
50
53
# @param keywords [Array[String],nil] Array of up to 15 keywords describing the sticker. If a sticker has 16 or more keywords, a random selection of 15 keywords will be returned. The keyword selection is random for each event, so different keywords may be returned for the same sticker.
51
54
# @param text [String,nil] Any text entered by the user. This property is only included for message stickers. Max character limit: 100
52
55
# @param quote_token [String] Quote token to quote this message.
53
-
# @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
56
+
# @param quoted_message_id [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
57
+
# @param mark_as_read_token [String,nil] Token used to mark the message as read.
Copy file name to clipboardExpand all lines: lib/line/bot/v2/webhook/model/text_message_content.rb
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,20 +35,25 @@ class TextMessageContent < MessageContent
35
35
# @!attribute [rw] quoted_message_id
36
36
# @return [String,nil] Message ID of a quoted message. Only included when the received message quotes a past message.
37
37
attr_accessor:quoted_message_id
38
+
# @!attribute [rw] mark_as_read_token
39
+
# @return [String,nil] Token used to mark the message as read.
40
+
attr_accessor:mark_as_read_token
38
41
39
42
# @param id [String] Message ID
40
43
# @param text [String] Message text.
41
44
# @param emojis [Array[Emoji, Hash[Symbol, untyped]],nil] Array of one or more LINE emoji objects. Only included in the message event when the text property contains a LINE emoji.
0 commit comments