send File Message With Progress Flow
fun BaseChannel.sendFileMessageWithProgressFlow(params: FileMessageCreateParams): Flow<ProgressMessageResult<FileMessage>>
Sends a file with given file information.
ProgressMessageResult.Pending : Called once the resending file is requested
ProgressMessageResult.Progress : Called while the file is being uploaded
ProgressMessageResult.Completed : 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
params
The parameters to send file message
See also
File Message Create Params