Edit a Message
Edit message is a feature which allows you to edit the content of your previously sent Text Messages
and Captions
associated with Media in your chat conversation.
Note : User can edit only
Sent
Messages.
#
Edit MessageTo edit a sent text message, use this below method by passing the required inputs to modify the content of the message in the editTextMessage
method.
Param | Description | Type | Required |
---|---|---|---|
messageId | MessageId of the message which is edit | String | true |
editedTextContent | Editable Text content | String | true |
mentionedUsersIds | Array of Group MentionedUsersIds | Array of Strings | false |
#
Response Format:info
When a message is being edited, editMessageListener event will be triggered. Based on this event, update the message and refresh the UI.
#
Edit Media CaptionTo edit a media caption, use this below method by passing the required inputs to modify the caption of the media message in the editMediaCaption
method.
Param | Description | Type | Required |
---|---|---|---|
messageId | MessageId of the message which is edit | String | true |
editedTextContent | Editable Caption Text | String | true |
mentionedUsersIds | Array of Group MentionedUsersIds | Array of Strings | false |
#
Response Format:info
When a message is being edited, editMessageListener event will be triggered. Based on this event, update the message and refresh the UI.