Skip to content

v3.25.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.
1b9d2f8

What's Changed

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

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

from linebot.v3 import WebhookHandler
from linebot.v3.webhooks import MessageEditedEvent, TextMessageContent

handler = WebhookHandler('YOUR_CHANNEL_SECRET')

@handler.add(MessageEditedEvent, message=TextMessageContent)
def handle_message_edited(event):
    print(f"Message {event.message.id} was edited to: {event.message.text}")

line-openapi updates

Dependency updates

  • chore(deps): update junit-framework monorepo to v6.1.1 by @renovate[bot] in #1030

Full Changelog: v3.24.0...v3.25.0


This release is prepared by @habara-k