editMediaCaption static method

Future<void> editMediaCaption({
  1. required EditMessageParams editMessageParams,
  2. required dynamic flyCallback(
    1. FlyResponse response
    ),
})

A method used to edit a Caption Text message sent previously.

Parameters:

The editMessageParams : An object containing parameters required for editing the message. The flyCallback : A callback function to handle the response from the editTextMessage.

Example usage:

await Mirrorfly.editMediaCaption(
  editMessageParams: editMessageParams,
  flyCallback: (FlyResponse response) {
    if (response.isSuccess) {
      print('Message Edited successfully');
    } else {
      print('Failed to edit message: ${response.errorMessage}');
    }
  },
);

Implementation

static Future<void> editMediaCaption(
    {required EditMessageParams editMessageParams,
    required Function(FlyResponse response) flyCallback}) {
  return FlyChatFlutterPlatform.instance.editMediaCaption(
      editMessageParams: editMessageParams, callback: flyCallback);
}