Chat

Chat Object

This object represents the information of a chat. Each chat object comes with the following properties:

AttributeDescription
ownerIndicates the user id of the user who initiated a chat.
idChat ID, to help identify the "type" of chat. (depends on "type")
typeThe type of chat. (dm/ channel/ bot)
titleThe title of the chat.
membersJSON array of users who are members of the chat. 

The members object contains the following properties:​

AttributeDescription
idUser ID (unique string identifier)
first_nameUser's first name
last_nameUser's last name
emailEmail address of the user
statusUser's status, depends on their availability 

A sample chat object is shown below:


{
  "owner": "123456",
  "members": [
    {
      "last_name": "",
      "id": "123456",
      "first_name": "",
      "email": "",
      "status": "0"
    },
    {
      "last_name": "",
      "id": "678910",
      "first_name": "",
      "email": "",
      "status": "0"
    }
  ],
  "id": "CD_1256246524399772951_1741337",
  "type": "channel",
  "recent_messages": ""
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocliq.com