GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Service → editMessage

AI-generated

Summary

Edit a specified WhatsApp message in a chat.

Inputs

  • chatId (required) — The chat identifier in the format '1234567890@c.us'.
  • idMessage (required) — The identifier of the message you want to edit.
  • message (required) — The new content of the message.

Output shape

no body — success/failure only

Returns a confirmation of the edit action; no data will be returned upon success.

Examples

Example 1: Edit the last message sent to a contact.

Set 'chatId' to '79000000000@c.us', 'idMessage' to the message ID of the last sent message, and 'message' to 'Updated message content.'.

Discussion