Create Message
This endpoint creates a new message
Body
This is the ID of the message to be created.
This is the time of the message to be created.
This is the body of the message to be created.
This is the username of the message to be created.
npm i -g stateset
This is the channel_id of the message to be created.
This is the user_id of the message to be created.
This is the is_public of the message to be created.
This is the from of the message to be created.
This is the to of the message to be created.
This is the from_me of the message to be created.
This is the sent_receipt of the message to be created.
This is the delivered_receipt of the message to be created.
This is the message_number of the message to be created.
This is the date of the message to be created.
This is the timestamp of the message to be created.
This is the created_at of the message to be created.
This is the updated_at of the message to be created.
Response
This is the id of the message.
This is the body of the message.
This is the date and time when the message was created.
This is the date when the message was sent.
This indicates if the message has been delivered.
This is the sender of the message.
This indicates if the message was sent by the user.
This indicates if the message is public or private.
This is the unique number assigned to the message.
This indicates if the message has been sent.
This is the time when the message was sent.
This is the timestamp of the message.
This is the recipient of the message.
This is the unique identifier for the user associated with the message.
This is the username of the user associated with the message.
Messages
Field | Type | Description |
---|---|---|
id | String | Unique identifier for the message |
body | String | The content or text of the message |
created_at | DateTime | The date and time when the message was created |
date | Date | The date when the message was sent |
deliveredReceipt | Boolean | Indicates if the message has been delivered |
from | String | Sender of the message |
fromMe | Boolean | Indicates if the message was sent by the user |
is_public | Boolean | Indicates if the message is public or private |
messageNumber | Integer | Unique number assigned to the message |
sentReceipt | Boolean | Indicates if the message has been sent |
time | Time | The time when the message was sent |
timestamp | DateTime | The timestamp of the message |
to | String | Recipient of the message |
user_id | String | Unique identifier for the user associated with the message |
username | String | Username of the user associated with the message |