Update a message.
Name | Requires Auth | Permission | Setting |
---|---|---|---|
updateMessage |
Yes | edit-message |
Message_AllowEditing - "Allow Message Editing" |
Argument | Example | Required | Description |
---|---|---|---|
textMessageObject |
|
"_id": "298gMs93982Le9A7pZjo2D2iB",
"rid": "64a1f373376181965ab77f54",
"msg": "Whats 4*!"
}
| Required | The Message Object containing only the updated msg
|
There are two essential settings to consider when deleting messages.
It is represented as a boolean (true/false), which determines whether message editing is permitted.
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.
{
"msg": "method",
"method": "updateMessage",
"id": "42",
"params": [{
"_id": "298gMs93982Le9A7pZjo2D2iB",
"rid": "64a1f373376181965ab77f54",
"msg": "Whats 4*!"
}]
}
{
"msg": "result",
"id": "42"
}