# Gửi tin nhắn vãn bản có @tag tên nhóm

1. Body

<table><thead><tr><th width="135">Name</th><th width="389">Type</th><th>Description</th></tr></thead><tbody><tr><td>service</td><td>message</td><td></td></tr><tr><td>method</td><td>mention</td><td></td></tr><tr><td>data</td><td><pre class="language-json"><code class="lang-json">{
    "method": "mention",
    "service": "message",
    "data": {
        "accountId": "39456257143545255",
        "groupId": "7070722571989963531",
        "message": "hihi @Saint @Esbt Test haha",
        "mentions": [
            {
                "name": "@Saint",
                "uid": "1598980502599776027",
                "pos": 5, // vị trí trong chuỗi văn bản tin nhắn
                "length": 6
            },
            {
                "name": "@Esbt Test",
                "uid": "7972996841116752526",
                "pos": 12,
                "length": 10
            }
        ]
    }
}
</code></pre></td><td></td></tr></tbody></table>

2. Response

{% tabs %}
{% tab title="200" %}

```json
{
    "data": {
        "error_message": "Successful.",
        "data": {
            "msgId": 5838820609738
        },
        "error_code": 0
    },
    "status": "success"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "status": "error",
    "error": {
        "message": "Something wrong was happened.",
        "code": null,
        "prms": null
    }
}
```

{% endtab %}
{% endtabs %}
