Message

A message is a piece of text that a user can send to a conversation.

{
    id: "63bfe95c3c5365e628c0a4c4",
    user_id: "8843223323423",
    text: "Hit the road Jack!",
    file: {
        type: "image",
        url: "https://urltofile.com/image.jpeg",
        name: "Assignment Project",
        size: "2 MB",
    },
    chat_id: "cfhdfd3423jkf",
    created_at: "2023-01-12T11:05:00.145Z"
}
Field
Type
Description

id

string

The id of the message

text

string

The text content of the message

file

The file associated with this message

created_at

string

The ISO Date the message was sent

user_id

string

The id of the user that sent the message

chat_id

string

the id of the chat that this message is being sent in

metadata

json object

an optional key value pair for any additional message information such as custom font size, font type, or JSON formatted string. accepts string,number and boolean values

Last updated