Edit a Message
#
OverviewEdit message is a feature which allows you to edit the content of your previously sent Text messages and Captions associated with Media (Image or Video) in your chat conversation
Note : User can edit only
Sent
Messages.
#
Edit Text MessageTo edit your text message, you need to pass the EditMessage
object as an argument to the parameter in the editTextMessage() method.
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | EditMessage | Object to hold the parameters of the Edit Message |
CALLBACK | FlySendMessageListener | callback to observe the action status |
info
When a message is being edited, onMessageEdited
event will be triggered. Based on this event, update the message and refresh the Ul.
#
Edit Media Caption MessageTo edit your media caption message, you need to pass the EditMessage
object as an argument to the parameter in the editMediaCaption() method.
Argument | Type | Description |
---|---|---|
MESSAGE_PARAMS | EditMessage | Object to hold the parameters of the Edit Message |
CALLBACK | FlySendMessageListener | callback to observe the action status |
info
When a message is being edited, onMessageEdited
event will be triggered. Based on this event, update the message and refresh the Ul.