GET api/Telegram/GetChatData/{id}?extendDay={extendDay}

Метод для отримання повної інформації про чат, Повідомлення, Класифікація, Copilot

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

extendDay

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

ChatData
NameDescriptionTypeAdditional information
messages

Collection of MessageStructDto

None.

copilotMessages

Collection of ChatCopilotMessageRaw

None.

chatInfo

ChatClassificationRaw

None.

Response Formats

application/json, text/json

Sample:
{
  "messages": [
    {
      "Reactions": [
        {
          "Employee": 1,
          "Emoji": "sample string 2"
        },
        {
          "Employee": 1,
          "Emoji": "sample string 2"
        }
      ],
      "Reply": {
        "Id": 1,
        "Name": "sample string 2",
        "Message": "sample string 3"
      },
      "AdditionalKey": 1,
      "Id": 2,
      "Chat": 3,
      "ChatId": 4,
      "Created": "2025-09-02T23:19:42.1158137+00:00",
      "Message": "sample string 6",
      "From": "sample string 7",
      "Phone": "sample string 8",
      "EmployeeId": 1,
      "MessageType": 0,
      "Attachments": [
        "sample string 1",
        "sample string 2"
      ],
      "Area": 9,
      "ChannelId": 10,
      "ReplyId": 11,
      "Level": 12,
      "Source": 0,
      "State": 0
    },
    {
      "Reactions": [
        {
          "Employee": 1,
          "Emoji": "sample string 2"
        },
        {
          "Employee": 1,
          "Emoji": "sample string 2"
        }
      ],
      "Reply": {
        "Id": 1,
        "Name": "sample string 2",
        "Message": "sample string 3"
      },
      "AdditionalKey": 1,
      "Id": 2,
      "Chat": 3,
      "ChatId": 4,
      "Created": "2025-09-02T23:19:42.1158137+00:00",
      "Message": "sample string 6",
      "From": "sample string 7",
      "Phone": "sample string 8",
      "EmployeeId": 1,
      "MessageType": 0,
      "Attachments": [
        "sample string 1",
        "sample string 2"
      ],
      "Area": 9,
      "ChannelId": 10,
      "ReplyId": 11,
      "Level": 12,
      "Source": 0,
      "State": 0
    }
  ],
  "copilotMessages": [
    {
      "Id": 1,
      "Created": "2025-09-02T23:19:42.1158137+00:00",
      "Chat": 3,
      "Employee": 4,
      "Message": "sample string 5",
      "ChatMessageLevel": 6,
      "ChatMessage": 1
    },
    {
      "Id": 1,
      "Created": "2025-09-02T23:19:42.1158137+00:00",
      "Chat": 3,
      "Employee": 4,
      "Message": "sample string 5",
      "ChatMessageLevel": 6,
      "ChatMessage": 1
    }
  ],
  "chatInfo": {
    "Id": 1,
    "Created": "2025-09-02T23:19:42.1158137+00:00",
    "Employee": 3,
    "Chat": 4,
    "Code": 1,
    "House": 1,
    "Classification": "sample string 5",
    "Comment": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<ChatData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Repositories.Telegram">
  <chatInfo>
    <Chat>4</Chat>
    <Classification>sample string 5</Classification>
    <Code>1</Code>
    <Comment>sample string 6</Comment>
    <Created>2025-09-02T23:19:42.1158137+00:00</Created>
    <Employee>3</Employee>
    <House>1</House>
    <Id>1</Id>
  </chatInfo>
  <copilotMessages>
    <ChatCopilotMessageRaw>
      <Chat>3</Chat>
      <ChatMessage>1</ChatMessage>
      <ChatMessageLevel>6</ChatMessageLevel>
      <Created>2025-09-02T23:19:42.1158137+00:00</Created>
      <Employee>4</Employee>
      <Id>1</Id>
      <Message>sample string 5</Message>
    </ChatCopilotMessageRaw>
    <ChatCopilotMessageRaw>
      <Chat>3</Chat>
      <ChatMessage>1</ChatMessage>
      <ChatMessageLevel>6</ChatMessageLevel>
      <Created>2025-09-02T23:19:42.1158137+00:00</Created>
      <Employee>4</Employee>
      <Id>1</Id>
      <Message>sample string 5</Message>
    </ChatCopilotMessageRaw>
  </copilotMessages>
  <messages>
    <MessageStructDto>
      <Area>9</Area>
      <Attachments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Attachments>
      <ChannelId>10</ChannelId>
      <Chat>3</Chat>
      <ChatId>4</ChatId>
      <Created>2025-09-02T23:19:42.1158137+00:00</Created>
      <EmployeeId>1</EmployeeId>
      <From>sample string 7</From>
      <Id>2</Id>
      <Level>12</Level>
      <Message>sample string 6</Message>
      <MessageType>CloseChatMode</MessageType>
      <Phone>sample string 8</Phone>
      <ReplyId>11</ReplyId>
      <Source>TGBot</Source>
      <State>Message</State>
      <AdditionalKey>1</AdditionalKey>
      <Reactions>
        <Reaction>
          <Emoji>sample string 2</Emoji>
          <Employee>1</Employee>
        </Reaction>
        <Reaction>
          <Emoji>sample string 2</Emoji>
          <Employee>1</Employee>
        </Reaction>
      </Reactions>
      <Reply>
        <Id>1</Id>
        <Message>sample string 3</Message>
        <Name>sample string 2</Name>
      </Reply>
    </MessageStructDto>
    <MessageStructDto>
      <Area>9</Area>
      <Attachments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Attachments>
      <ChannelId>10</ChannelId>
      <Chat>3</Chat>
      <ChatId>4</ChatId>
      <Created>2025-09-02T23:19:42.1158137+00:00</Created>
      <EmployeeId>1</EmployeeId>
      <From>sample string 7</From>
      <Id>2</Id>
      <Level>12</Level>
      <Message>sample string 6</Message>
      <MessageType>CloseChatMode</MessageType>
      <Phone>sample string 8</Phone>
      <ReplyId>11</ReplyId>
      <Source>TGBot</Source>
      <State>Message</State>
      <AdditionalKey>1</AdditionalKey>
      <Reactions>
        <Reaction>
          <Emoji>sample string 2</Emoji>
          <Employee>1</Employee>
        </Reaction>
        <Reaction>
          <Emoji>sample string 2</Emoji>
          <Employee>1</Employee>
        </Reaction>
      </Reactions>
      <Reply>
        <Id>1</Id>
        <Message>sample string 3</Message>
        <Name>sample string 2</Name>
      </Reply>
    </MessageStructDto>
  </messages>
</ChatData>