| Name | Modified | Size | Downloads / 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 by @github-actions[bot] in https://github.com/line/line-bot-sdk-java/pull/1932
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
messageEditedwebhook events may arrive out of order. The event with the largesttimestamprepresents 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
- chore(deps): update actions/setup-java action to v5.4.0 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1926
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.36 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1927
- chore(deps): update gradle to v9.6.1 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1928
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.37 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1929
- fix(deps): update dependency io.github.littleproxy:littleproxy to v2.8.0 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1930
- fix(deps): update junit-framework monorepo to v6.1.1 by @renovate[bot] in https://github.com/line/line-bot-sdk-java/pull/1931
Full Changelog: https://github.com/line/line-bot-sdk-java/compare/v10.0.0...v10.1.0
This release is prepared by @habara-k