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
message Id
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.
suspend fun BaseChannel.updateFileMessage(messageId: Long, params: FileMessageUpdateParams): FileMessage
Deprecated
As of 4.17.0, replaced with awaitUpdateFileMessage(messageId, params).
Replace with
awaitUpdateFileMessage(messageId, params)
Content copied to clipboard
Update file message
Return
The file message
Since
4.15.0
Parameters
message Id
The message id to update
params
The parameters to update file message