Edit Message
Description
Section titled “Description”wss message_edit
The message_edit
request allowed the sender of the message to edit their own message with selected fields.
Request Parameters
Section titled “Request Parameters”Name | Type | Description |
---|---|---|
id | string | Identifier of the message |
body | string | New text content of the message |
Response Fields
Section titled “Response Fields”{ "id": "RequestId", "success": true}
Example
Section titled “Example”{ "request": { "message_edit": { "id": "63077ad836b78c3d82af0812", "body": "updated message body" }, "id": "RequestId" }}
Then other users in this conversation who is online will receive the following message:
{ "message_edit": { "id": "63077ad836b78c3d82af0812", "body": "updated message body", "from": "634ec51c0b65918393dca5bf" }}
If users are offline, they will receive a message once became online.
See Also
Section titled “See Also” SAMA chat server API: Messages Based on ease of use, and with easy-to-understand documentation and articles on how to set up and use our APIs, we want to show that it is REAL to build communication into your application.
DataBase Records Collection of complete objects stored in the database.