Rate this page:

Send, edit and delete messages

This article will teach you how to send, edit, and delete messages in an Voximplant IM conversation:

Send a message

Use the sendMessage method to send a message to a conversation.

To receive messages, handle the message sending events. Take a look on how we implement it in the code:

Send a message

Send a message

Edit a message

Use the Message.update method to edit your message.

With default permissions, users can edit own messages only. Users with the canEditAll permissions can also edit others' messages.

Info

To track changes of other messages, you have to subscribe to the didEditMessage / onEditMessage and didRemoveMessage / onRemoveMessage

Edit a message

Edit a message

Delete a message

Use the Message.remove method to delete a message from the conversation.

With default permissions, users can delete own messages only. Users with the canRemoveAll permissions can also delete others' messages.

Info

To track changes of other messages, you have to subscribe to the didEditMessage / onEditMessage and didRemoveMessage / onRemoveMessage

Delete a message

Delete a message