Messages: send, edit, delete
This article will teach you how to send, edit, and delete messages in a Voximplant IM conversation.
Contents
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 at how we implement it in the code:
Edit a message
Use the Message.update method to edit your message.
With default permissions, users can edit their own messages only. Users with the canEditAll permissions can also edit others' messages.
To track changes in other messages, you have to subscribe to the didEditMessage/onEditMessage and didRemoveMessage/onRemoveMessage
Delete a message
Use the Message.remove method to delete a message from the conversation.
With default permissions, users can delete their own messages only. Users with the canRemoveAll permissions can also delete others' messages.
To track changes in other messages, you have to subscribe to the didEditMessage/onEditMessage and didRemoveMessage/onRemoveMessage
Download our demos
Here you can download our instant messaging demos for multiple platforms for your instance: