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 EditMessageParams
object as an argument to the parameter in the editTextMessage()
method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
EDIT_MESSAGE_PARAMS | EditMessageParams | Object to hold the parameters of the Edit Message |
flyCallback | FlyResponse | 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 UI.
#
Edit Media Caption MessageTo Edit your media caption message, you need to pass the EditMessageParams
object as an argument to the parameter in the editMediaCaption()
method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
EDIT_MESSAGE_PARAMS | EditMessageParams | Object to hold the parameters of the Edit Message |
flyCallback | FlyResponse | 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 UI.