Skip to content

v2.5.0 Support mark as read by token API

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Nov 08:15
· 1 commit to master since this release
Immutable release. Only release title and notes can be modified.
6132028

What's Changed

  • Support mark as read by token API by @github-actions[bot] in #697

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 MessageContent 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/

(original PR is line/line-openapi#115)

Example

request = Line::Bot::V2::MessagingApi::MarkMessagesAsReadByTokenRequest.new(
  mark_as_read_token: event.message.mark_as_read_token
)
client.mark_messages_as_read_by_token(
  mark_messages_as_read_by_token_request: request
)

line-openapi updates

Dependency updates

Full Changelog: v2.4.0...v2.5.0


This release is prepared by @habara-k