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")
chat_typeThe type of chat. (dm/ channel/ thread/ bot)
titleThe title of the chat.
parent_resource (in case of thread)Information about the channel in which the thread is present.
members
(Deprecated)
JSON array of users who are members of the chat. 

A sample chat object is shown below:


{
   "owner": "15204570",
   "parent_resource": {
		"channel_unique_name": "privatechannel",
		"channel_id": "P1000000022001"
		"id": "CT_1259543746479073445_15204723",
		"type": "channel",
		"title": "#Private Channel"
   },
   "id": "CT_1259543746479073445_15204723-T-1256254397782653074",
   "type": "thread",
   "title": “Zylker campaign 24’ discussions”