dambel

دمبل

shevron
ورود | ثبت نام

API Docs / chats / messages / chat message resource



Chat Message Resource

Represents a message in a chat, including sender, content, reply information, and timestamps.


Schema

FieldTypeDescriptionExample
idintUnique identifier for the message123
user_idintID of the user who sent the message123
user_namestringName of the user who sent the message"John Doe"
chat_idintID of the chat123
contentstringMessage content"Hello!"
chat_message_idintID of the message being replied to (nullable)456
reply_to_contentstringContent of the replied-to message (nullable)"Hi there"
created_atstringCreation timestamp (ISO 8601 format)"2020-01-01 00:00:00"
updated_atstringLast update timestamp (ISO 8601 format)"2020-01-01 00:00:00"

Example

{
  "id": 123,
  "user_id": 123,
  "user_name": "John Doe",
  "chat_id": 123,
  "content": "Hello!",
  "chat_message_id": 456,
  "reply_to_content": "Hi there",
  "created_at": "2020-01-01 00:00:00",
  "updated_at": "2020-01-01 00:00:00"
}
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube