resendMessageWithProgressFlow

fun BaseChannel.resendMessageWithProgressFlow(fileMessage: FileMessage): Flow<ProgressMessageResult<FileMessage>>

Resend message with the original file objects set when the file message was sent 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.17.0

Parameters

fileMessage

The file message to resend

See also