Skip to content

v12.7.0 Support Message Edited Webhook

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Jul 08:50
· 15 commits to master since this release
Immutable release. Only release title and notes can be modified.
689e59e

What's Changed

  • Support Message Edited Webhook by @github-actions[bot] in #865

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 line/line-openapi#129)

Example

use LINE\Webhook\Model\MessageEditedEvent;
use LINE\Webhook\Model\TextMessageContent;

foreach ($parsedEvents->getEvents() as $event) {
    if ($event instanceof MessageEditedEvent
        && $event->getMessage() instanceof TextMessageContent
    ) {
        echo "Message {$event->getMessage()->getId()} was edited to: {$event->getMessage()->getText()}";
    }
}

line-openapi updates

Dependency updates

  • chore(deps): update actions/setup-java action to v5.4.0 by @renovate[bot] in #860
  • Update junit-framework monorepo to v6.1.1 by @renovate[bot] in #864

Other Changes

Full Changelog: v12.6.0...v12.7.0


This release is prepared by @habara-k