Edit message
POST
/waInstance{{idInstance}}/editMessage/{{apiTokenInstance}}The method edits a message in a chat.
To display edited messages in the journal, you need to enable the webhook "editedMessageWebhook": "yes" with method setSettings.
Documentation editMessage
Request
Body Params application/json
chatId
string
required
idMessage
string
required
message
string
required
Example
{
"chatId": "79123456789@c.us",
"idMessage": "BAE5367237E13A87",
"message": "I use Green-API to send this message to you!"
}
Request samples
Responses
editMessage(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
idMessage
string
required
ExampleeditMessage
{
"idMessage": "BAE5367237E13A87"
}
Last modified: 19 days ago