message_edits Webhook Event Reference

This event will be sent to your webhook when a user edits a previously-sent message.
You can subscribe to this callback by selecting the message_edits field when setting up your webhook.

Example

{
  "sender": {
    "id": "<PSID>"
  },
  "recipient": {
    "id": "<PAGE_ID>"
  },
  "timestamp": 1458668856463,
  "message_edit": {
    "mid": "<MESSAGE_ID>",
    "text": "<TEXT>",
    "num_edit": "<INT>",
  }
}

Properties

sender

PropiedadTipoDescripción

id

Cadena

El PSID del usuario que activó el evento de webhook.

user_ref

Cadena

La user_ref del usuario que activó el evento de webhook. Esto está disponible solamente para el evento de webhook del plugin de chat.

recipient

PropiedadTipoDescripción

id

Cadena

El identificador de la página.

message_edit

Property Type Description

mid

string

The Message ID of the message that the user edited.

text

string

The new message content, after the user's edit.

num_edit

integer

The number of times the user has edited the message. (The user cannot edit a message more than five times. This constraint is on the Messenger client side.)