updateFileMessage

suspend fun BaseChannel.updateFileMessage(messageId: Long, params: FileMessageUpdateParams): FileMessage

Update file message

Return

The file message

Since

4.15.0

Parameters

messageId

The message id to update

params

The parameters to update file message


fun BaseChannel.updateFileMessage(messageId: Long, params: FileMessageUpdateParams, handler: ResultHandler<FileMessage>?)

Updates a FileMessage that was previously sent in the channel. Note that the file itself cannot be changed; only the fields stored within the message can be modified.

Since

4.15.0

Parameters

messageId

The ID of the message. This must be a message that exists in the channel's history, or an error will be returned.

params

FileMessageCreateParams.

handler

An FileMessageHandler to receive the callback from this method.