MinChat Documentation
SupportHome
  • Introduction
  • Getting Started
    • Using Vanilla Javascript
    • Using React
    • Using React Native
  • Webhooks
    • Overview
  • Rest APIs
    • Overview
  • Websockets
    • Overview
  • Customize UI
    • Customizing React UI
  • Reference
    • User
    • Message
    • File
  • Javascript SDK
    • Overview
    • Conversation (Chat)
  • React SDK
    • Overview
    • useChats hook
    • useMessages hook
    • useUser hook
    • useMinChat
    • Conversation (Chat)
  • React Native SDK
    • Overview
    • useChats hook
    • useMessages hook
    • useUser hook
    • useMinChat
    • Conversation (Chat)
    • File
Powered by GitBook
On this page

Was this helpful?

  1. Reference

File

File object is a JSON attached to a message that contains information about an attachment.

{
    type: "image",
    url: "https://urltofile.com/image.jpeg",
    size: "2 MB",
    name: "Assignment Notes"
}
Field
Type
Description

type

string

The type of the file.

image | video | file | gif

url

string

The url to the file

size

string

The size of the file.

name

string

The name of the file

Last updated 1 year ago

Was this helpful?