Update Message

Update a message.

Payload Parameters

Settings

There are two essential settings to consider when deleting messages.

Message_AllowEditing

It is represented as a boolean (true/false), which determines whether message editing is permitted.

Message_AllowDeleting_BlockDeleteInMinutes

It is represented as an integer and offers more control over the edit functionality. When set to 0, editing is allowed without any time restrictions. However, if the value is greater than 0, there is a time-based restriction where editing is blocked/disabled after the specified duration has passed.

Example Call

{
    "msg": "method",
    "method": "updateMessage",
    "id": "42",
    "params": [{
        "_id": "298gMs93982Le9A7pZjo2D2iB",
        "rid": "64a1f373376181965ab77f54",
        "msg": "Whats 4*!"
}]
        
}

Example Response

{
    "msg": "result",
    "id": "42"
}

Last updated

Rocket.Chat versions receive support for six months after release.