resendMessageWithProgress

fun BaseChannel.resendMessageWithProgress(fileMessage: FileMessage, file: File?): Flow<ProgressMessageResult<FileMessage>>

Deprecated

As of 4.17.0, replaced with resendMessageWithProgressFlow(fileMessage).

Replace with

resendMessageWithProgressFlow(fileMessage)

Resend message with progress.

  • ProgressMessageResult.Pending : Called once the resending file is requested

  • ProgressMessageResult.Progress : Called while the file is being uploaded

  • ProgressMessageResult.Succeed : Called once the file has been sent

  • ProgressMessageResult.Failure : Called if the request failed

Return

The file message progress result

Since

4.15.0

Parameters

fileMessage

The file message to resend

file

The file to resend

See also