Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateImgMsgParameters

Index

Properties

body?: { filename: string; type: string; url: string }

The message body.

Type declaration

  • filename: string

    The file name.

  • type: string

    The file type.

  • url: string

    The file URL.

chatType: ChatType

The conversation type.

ext?: {}

Message extension.

Type declaration

  • [key: string]: any
file: File

The file object.

file_length: number

The image file length.

from?: string

The sender, which can only be the current user and can not be changed.

height?: number

The image height.

to: string

The recipient.

type: "img"

The message type.

url?: string

The file URL. If the file has been uploaded, you can directly use the URL.

width?: number

The image width.

Methods

  • onFileUploadComplete(data: any): void
  • The callback of file upload completion.

    Parameters

    • data: any

    Returns void

  • onFileUploadError(error: any): void
  • The callback of file upload error.

    Parameters

    • error: any

    Returns void

  • onFileUploadProgress(data: any): void
  • The callback of file upload progress.

    Parameters

    • data: any

    Returns void

Generated using TypeDoc