---
# System prepended metadata

title: Phần trả lời tin nhắn

---

# Phần trả lời tin nhắn 

### Trả lời tin nhắn file 
```
curl 'http://call.azibai.com:8001/chat/list-message?user_id=1694&is_group=0&thread_id=b3fd77ce-b7db-454c-900c-ac643c85e29c&get_all=1&is_stranger=0&is_shop=0' \
  -H 'Accept: text/plain, */*' \
  -H 'Accept-Language: vi,en;q=0.9,en-GB;q=0.8,en-US;q=0.7' \
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjE2OTQsImdyb3VwIjozLCJ1c2VybmFtZSI6InN1b25nY290dG9uIiwibmFtZSI6IkZDIENcdTAwZjQgTG9uZyAxIiwiaXNzIjoiaHR0cHM6XC9cL2FwaS5hemliYWkuY29tXC9hcGlcL3YxXC9sb2dpbiIsImlhdCI6MTY0ODcxMDg0NCwiZXhwIjoxNjg0NzEwODQ0LCJuYmYiOjE2NDg3MTA4NDQsImp0aSI6ImM1OTE1N2Y1M2EyNDJhNTgwNTFlZDgxYWEwMjFiYTlhIn0.3ubPjJt8d-UvFf0xIUhF-_OUu7CT2l3a1H1nKc2gInc' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'DNT: 1' \
  -H 'Origin: http://localhost:3505' \
  -H 'Pragma: no-cache' \
  -H 'Referer: http://localhost:3505/' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.39' \
  -H 'key: azibai_96ccfd484b11f40c903015e10b589cee143caa3c' \
  --compressed \
  --insecure
```

Hiện tại
```
quote: {
    "user_fullname": "FC Cô Long 1",
    "mime": "application/msword",
    "owner_id": 1694,
    "parent_id": "2ceef8c0-bad2-11ec-ad46-afc28fac1070",
    "type_data": "reply_file",
    "url_file": "https://cdn1.azibai.com/media/chat_media/1694/files/VWckobVugM8AdgQTA887agMsEf95Xuj1Stmm7PTe.doc"
}
```

cần:
```
{
    "user_fullname": "FC Cô Long 1",
    "file_size": 100352,
    "mime": "application/msword",
    "owner_id": 1694,
    "parent_id": "2ceef8c0-bad2-11ec-ad46-afc28fac1070",
    "type_data": "reply_file",
    "name_file": "file-sample_100kB.doc",
    "url_file": "https://cdn1.azibai.com/media/chat_media/1694/files/VWckobVugM8AdgQTA887agMsEf95Xuj1Stmm7PTe.doc"
}
```

## Trả lời tin nhắn video

Hiện tại
```
quote{
    "user_fullname": "FC Cô Long 1",
    "media_url": "https://cdn1.azibai.com/media/chat_media/1694/videos/QTOVzqKc8U0WQxZwlYMZf07D3NE9Lscdf0yk2HIY.jpg",
    "owner_id": 1694,
    "parent_id": "167fde60-bad2-11ec-85c2-f920ffb02c99",
    "type_data": "reply_video"
}
```

cần

```
{
    "user_fullname": "FC Cô Long 1",
    "thumbnail": "https://cdn1.azibai.com/media/chat_media/1694/videos/QTOVzqKc8U0WQxZwlYMZf07D3NE9Lscdf0yk2HIY.jpg",
    "url_video": "https://cdn1.azibai.com/media/chat_media/1694/videos/b0dWXc6wWe677GGfU9LFEQrXnfte0aZNeKt4AXBA.mp4",
    "owner_id": 1694,
    "parent_id": "167fde60-bad2-11ec-85c2-f920ffb02c99",
    "type_data": "reply_video",
    "media_url": "https://cdn1.azibai.com/media/chat_media/1694/videos/QTOVzqKc8U0WQxZwlYMZf07D3NE9Lscdf0yk2HIY.jpg",
}
```

## Trả lời tin nhắn sản phẩm

Hiện tại

```
{
    "user_fullname": "FC Cô Long 1",
    "media_url": "https://cdn1.azibai.com/media/images/product/20072021/8Timh21zc2nRK8oZE3Zaz32q5o4vyAscQ8iHzogS.png",
    "owner_id": 1694,
    "parent_id": "28d97080-bad2-11ec-bc11-e2c4a1b3036e",
    "text": "Tã dán Super Jumbo Unidry size M76 - L68 - XL62 - BDPSJ_1",
    "type_data": "reply_product"
}

```

cần
```
{
    "user_fullname": "FC Cô Long 1",
    "pro_cost": 190000,
    "pro_id": 43460,
    "pro_image": "https://cdn1.azibai.com/media/images/product/20072021/8Timh21zc2nRK8oZE3Zaz32q5o4vyAscQ8iHzogS.png",
    "pro_name": "Tã dán Super Jumbo Unidry size M76 - L68 - XL62 - BDPSJ_1",
    "owner_id": 1694,
    "parent_id": "28d97080-bad2-11ec-bc11-e2c4a1b3036e",
    "text": "Tã dán Super Jumbo Unidry size M76 - L68 - XL62 - BDPSJ_1",
    "type_data": "reply_product"
}
```

## Trả lời tin nhắn đường dẫn
hiện tại
```
{
    "user_fullname": "FC Cô Long 1",
    "media_url": "https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded",
    "owner_id": 1694,
    "parent_id": "035ca710-b4a5-11ec-8148-0bf009a9fc35",
    "text": "https://stackoverflow.com/questions/24186848/play-audio-from-client-when-message-is-recieved-from-socket-io-node-js",
    "type_data": "reply_link"
}
```

cần 
```
{
"user_fullname": "FC Cô Long 1",
    "media_url": "https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded",
    "owner_id": 1694,
    "parent_id": "035ca710-b4a5-11ec-8148-0bf009a9fc35",
    "text": "https://stackoverflow.com/questions/24186848/play-audio-from-client-when-message-is-recieved-from-socket-io-node-js",
    "type_data": "reply_link",

    "link": "http://stackoverflow.com/questions/24186848/play-audio-from-client-when-message-is-recieved-from-socket-io-node-js",
    "host": "stackoverflow.com",
    "image": "https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded",
    "title": "Play Audio from client when message is recieved from socket.io - node.js",
    "description": "I've searched for a while for a solution to this problem, but haven't found much.\n\nMy goal is to recieve a message from a udp client, which the server recieves and forwards to a web client, which p..."
}
```

