FileMessageCreateParams.withMessage constructor

FileMessageCreateParams.withMessage(
  1. FileMessage fileMessage,
  2. {bool? deepCopy}
)

withMessage

Implementation

FileMessageCreateParams.withMessage(FileMessage fileMessage, {bool? deepCopy})
    : fileInfo = FileInfo.fromFileUrl(
        fileUrl: fileMessage.url,
        mimeType: fileMessage.type,
      ),
      super.withMessage(fileMessage, deepCopy: deepCopy);