---
title: "The account's groups & channels"
locale: en
url: https://tlg.builera.app/en/docs/reference/rest/groups.chats
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# The account's groups & channels

Every group / supergroup / forum / channel the workspace's accounts are in (title, @username, members, the account's role), whether each reaches the inbox (`in_inbox`) and its follow switch (`auto` / `on` / `off`). Filter by account, kind, inbox, text. Run groups.refresh_chats first when the list is old (`lastSyncedAt`).

Every group / supergroup / forum / channel the workspace's accounts are in (title, @username, members, the account's role), whether each reaches the inbox (`in_inbox`) and its follow switch (`auto` / `on` / `off`). Filter by account, kind, inbox, text. Run groups.refresh_chats first when the list is old (`lastSyncedAt`).

## Overview

| Name | Value |
| --- | --- |
| Code | `groups.chats` |
| Scope needed | `messages.read` |
| Risk | Read |
| May need confirmation | No |
| Runs as | Answers right away |
| Needs `Idempotency-Key` | No |
| Member roles allowed | `owner`, `manager`, `agent` |
| In the app | Groups & channels |

## Input fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | `uuid` | No |   |
| `q` | `text` | No |   |
| `kind` | `"group" \| "supergroup" \| "forum" \| "channel"` | No |   |
| `inbox` | `"all" \| "in" \| "out"` | No |   |
| `includeLeft` | `true/false` | No |   |
| `offset` | `integer` | No |   |
| `limit` | `integer` | No |   |

## Example request

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/groups.chats \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Output fields (`data`)

| Field | Type | Required |
| --- | --- | --- |
| `chats` | `object[]` | Yes |
| `total` | `number` | Yes |
| `lastSyncedAt` | `null \| text` | Yes |

## Example answer

```json
{
  "data": {
    "chats": [
      {
        "tg_chat_id": "00000000-0000-4000-8000-000000000000",
        "id": "00000000-0000-4000-8000-000000000000",
        "workspace_id": "00000000-0000-4000-8000-000000000000",
        "account_id": "00000000-0000-4000-8000-000000000000",
        "kind": "text",
        "title": "text",
        "username": "text",
        "members": 1,
        "role": "text",
        "follow": "text",
        "follow_by": "text",
        "follow_at": "2026-10-22T12:00:00.000Z",
        "synced_at": "2026-10-22T12:00:00.000Z",
        "left_at": "2026-10-22T12:00:00.000Z",
        "in_inbox": true,
        "created_at": "2026-10-22T12:00:00.000Z",
        "updated_at": "2026-10-22T12:00:00.000Z"
      }
    ],
    "total": 1,
    "lastSyncedAt": "2026-10-22T12:00:00.000Z"
  }
}
```

## Using it over MCP

Not listed on any profile: call `tools_describe` then `tools_run` with `code: "groups.chats"`. Tool name when listed: `groups_chats`.
