Skip to content

v8.18.0 Support mark as read by token API

Latest

Choose a tag to compare

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

What's Changed

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

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

if _, err = bot.MarkMessagesAsReadByToken(
	&messaging_api.MarkMessagesAsReadByTokenRequest{
		MarkAsReadToken: message.MarkAsReadToken,
	},
); err != nil {
	log.Print(err)
}

line-openapi updates

Dependency updates

  • fix(deps): update dependency org.openapitools:openapi-generator to v7.17.0 by @renovate[bot] in #635

Full Changelog: v8.17.0...v8.18.0


This release is prepared by @habara-k