GET api/Telegram/GetChats?employeeId={employeeId}&history={history}&myChats={myChats}&myTerritory={myTerritory}
Получить список чатов
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeId |
ИД пользователя |
integer |
Required |
| history |
Глубина истории |
integer |
Required |
| myChats |
Фильтр чатов где я общаюсь |
boolean |
Default value is False |
| myTerritory |
Фильтр чатов по моей територии |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
Collection of ChatDtos| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id чата |
integer |
None. |
| Created |
Дата создания чата |
date |
None. |
| Name |
Name чата |
string |
None. |
| Phone |
Phone чата |
string |
None. |
| ChatId |
ChatId клиента |
integer |
None. |
| ChannelId |
Канал користувача |
integer |
None. |
| CloseDate |
Closed чата |
date |
None. |
| State |
Состояние чата |
integer |
None. |
| LastMessage |
Последнее сообщение |
string |
None. |
| LastEmployee |
Последний отправитель |
integer |
None. |
| Area |
Територия |
integer |
None. |
| Classification |
Класифікація діалогу |
string |
None. |
| Source |
Джерело діалогу |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Created": "2026-02-04T02:10:51.2371526+00:00",
"Name": "sample string 3",
"Phone": "sample string 4",
"ChatId": 1,
"ChannelId": 1,
"CloseDate": "2026-02-04T02:10:51.2371526+00:00",
"State": 5,
"LastMessage": "sample string 6",
"LastEmployee": 1,
"Area": 7,
"Classification": "sample string 8",
"Source": 9
},
{
"Id": 1,
"Created": "2026-02-04T02:10:51.2371526+00:00",
"Name": "sample string 3",
"Phone": "sample string 4",
"ChatId": 1,
"ChannelId": 1,
"CloseDate": "2026-02-04T02:10:51.2371526+00:00",
"State": 5,
"LastMessage": "sample string 6",
"LastEmployee": 1,
"Area": 7,
"Classification": "sample string 8",
"Source": 9
}
]
application/xml, text/xml
Sample:
<ArrayOfChatDtos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Repositories.Telegram">
<ChatDtos>
<Area>7</Area>
<ChannelId>1</ChannelId>
<ChatId>1</ChatId>
<Classification>sample string 8</Classification>
<CloseDate>2026-02-04T02:10:51.2371526+00:00</CloseDate>
<Created>2026-02-04T02:10:51.2371526+00:00</Created>
<Id>1</Id>
<LastEmployee>1</LastEmployee>
<LastMessage>sample string 6</LastMessage>
<Name>sample string 3</Name>
<Phone>sample string 4</Phone>
<Source>9</Source>
<State>5</State>
</ChatDtos>
<ChatDtos>
<Area>7</Area>
<ChannelId>1</ChannelId>
<ChatId>1</ChatId>
<Classification>sample string 8</Classification>
<CloseDate>2026-02-04T02:10:51.2371526+00:00</CloseDate>
<Created>2026-02-04T02:10:51.2371526+00:00</Created>
<Id>1</Id>
<LastEmployee>1</LastEmployee>
<LastMessage>sample string 6</LastMessage>
<Name>sample string 3</Name>
<Phone>sample string 4</Phone>
<Source>9</Source>
<State>5</State>
</ChatDtos>
</ArrayOfChatDtos>