Download Latest Version v10.1.0 Support Message Edited Webhook source code.zip (4.5 MB)
Email in envelope

Get an email when there's a new version of LINE Messaging API SDK for Java

Home / v10.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-07 2.6 kB
v10.1.0 Support Message Edited Webhook source code.tar.gz 2026-07-07 3.8 MB
v10.1.0 Support Message Edited Webhook source code.zip 2026-07-07 4.5 MB
Totals: 3 Items   8.3 MB 0

What's Changed

Support Message Edited Webhook

Add MessageEditedEvent webhook event to support the message editing feature.

When a user edits a message in a group that includes a LINE Official Account, a webhook event with type=messageEdited is sent.

Notes

  • Currently, message editing is not available in 1:1 chats with LINE Official Accounts, so this event is only triggered in group chats.
  • Multiple messageEdited webhook events may arrive out of order. The event with the largest timestamp represents the latest edit state.

Please also refer to the document: https://developers.line.biz/en/reference/messaging-api/#edit-event

(original PR is https://github.com/line/line-openapi/pull/129)

Example

:::java
import com.linecorp.bot.webhook.model.Event;
import com.linecorp.bot.webhook.model.MessageEditedEvent;
import com.linecorp.bot.webhook.model.TextMessageContent;

for (Event event : callbackRequest.events()) {
    if (event instanceof MessageEditedEvent messageEdited
            && messageEdited.message() instanceof TextMessageContent text) {
        System.out.println("Message " + text.id() + " was edited to: " + text.text());
    }
}

line-openapi updates

Dependency updates

Full Changelog: https://github.com/line/line-bot-sdk-java/compare/v10.0.0...v10.1.0


This release is prepared by @habara-k

Source: README.md, updated 2026-07-07