Skip to content

v11.2.0 Support Message Edited Webhook

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Jul 08:50
Immutable release. Only release title and notes can be modified.
7ce0902

What's Changed

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

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

import { webhook } from "@line/bot-sdk";

function handleEvent(event: webhook.Event) {
  if (event.type !== "messageEdited") return;
  if (event.message.type !== "text") return;

  console.log(`edited: ${event.message.id} -> ${event.message.text}`);
}

line-openapi updates

  • Format by prettier 3.9.0 by @github-actions[bot] in #1707

Dependency updates

Full Changelog: v11.1.0...v11.2.0


This release is prepared by @habara-k