Class ChatMessageFile

Instances of this class represents a file in a chat message. This class must not be directly instantiated. Instances of this class can be obtained using getData.

Hierarchy

  • ChatMessageFile

Properties

Methods

Properties

cachedType?: string
name: string
url: string

Methods

  • Returns the mime-type of the file.

    Returns

    A promise fulfilled with the mime-type of the file

    Deprecated

    You must directly send a HEAD request to the URL instead of relying on this method e.g.: fetch(chatFile.getUrl(), {method: 'HEAD'})

    Returns Promise<undefined | string>

Generated using TypeDoc