SearchChatsResponse
Chat search results
chats object[]required
Array of found chats
Chat ID
w:AIQffAsGiaID of the workspace the chat belongs to
w:AIQffAsGi8metadata objectrequired
Contains chat-type-specific information. One of the fields is populated depending on the chat type
personal object
Contains information about the personal chat
MembershipId of the other party
aIQffAsGiaworkspace object
Information about the workspace chat
Chat name
NewsWhether the chat is an announcement chat
trueChat type
Possible values: [PRIVATE, PUBLIC, GENERAL]
PUBLICWhether new workspace members are automatically added to the chat
trueChat description
Company newsNumber of members
5thread object
Thread information
ChatId of the parent chat where the parent message is located
w:aIQffAsGiaMessageId of the parent message the thread belongs to
bIQffAsGiaconference object
Conference chat information
Identifier of the conference the chat relates to
dIQffAsGiauserEvents object
Information about the chat with personal notifications
MembershipId of the owner
aIQffAsGiaDate and time the chat was created
2023-02-26T18:58:36.154+03:00Date and time the chat was last modified. The field is used only for Workspace chats
2023-02-26T18:58:36.154+03:00Date and time the chat was archived. The field is used only for Workspace chats
2023-02-26T18:58:36.154+03:00MembershipId of the member who archived the chat
fIQffAsGi8The bot's role in the chat. The field is used only for Workspace chats
Possible values: [MEMBER, ADMIN, OWNER]
ADMINArray of the bot's ChatPermission values in this chat. The field is used only for Workspace chats
Possible values: [CHANGE_ROLE, ARCHIVE_CHAT, RENAME_CHAT, UPDATE_CONFIG, KICK_FROM_CHAT, SEND_MESSAGES_TO_ANNOUNCE_CHANNEL, PIN_CHAT_MESSAGE, SCHEDULE_CONFERENCE, DELETE_CHAT_MESSAGE, UPDATE_PERMISSIONS, FORWARD_MESSAGES]
Next page token
Previous page token
Total number of results found
{
"chats": [
{
"chatId": "w:AIQffAsGia",
"workspaceId": "w:AIQffAsGi8",
"metadata": {
"personal": {
"otherMembershipId": "aIQffAsGia"
},
"workspace": {
"name": "News",
"announce": "true",
"chatType": "PUBLIC",
"autoJoinNewMembers": "true",
"description": "Company news",
"memberCount": "5"
},
"thread": {
"parentChatId": "w:aIQffAsGia",
"parentMessageId": "bIQffAsGia"
},
"conference": {
"conferenceId": "dIQffAsGia"
},
"userEvents": {
"owner": "aIQffAsGia"
}
},
"createdAt": "2023-02-26T18:58:36.154+03:00",
"updatedAt": "2023-02-26T18:58:36.154+03:00",
"archivedAt": "2023-02-26T18:58:36.154+03:00",
"archivedBy": "fIQffAsGi8",
"chatRole": "ADMIN",
"chatPermissions": [
"CHANGE_ROLE"
]
}
],
"nextPageToken": "string",
"prevPageToken": "string",
"allResultCount": 0
}