TeleLive Docs

Chat

Read history

GET /public/v1/chat?broadcaster_user_id=123&limit=50

Optional: `slug`, `after_id`. Requires `chat:read` or `channel:read`.

## Post chat message
POST /public/v1/chat
Authorization: Bearer tloa_…
Content-Type: application/json

{
  "broadcaster_user_id": 123,
  "content": "Hello",
  "type": "user",
  "reply_to_message_id": "456"
}

| Field | Notes |
|-------|--------|
| `broadcaster_user_id` | Required for `type=user`. Ignored for `type=bot` (posts to the token user's channel). |
| `content` | Required. Max 500 graphemes / 2048 UTF-8 bytes. |
| `type` | `user` or `bot` |
| `reply_to_message_id` | Optional parent message id |

Scope: **`chat:write`**

Response:
{ "data": { "is_sent": true, "message_id": "789" }, "message": "OK" }

## Delete chat message
DELETE /public/v1/chat/{message_id}

Scope: **`moderation:chat_message:manage`**  
Actor must be the broadcaster or a channel moderator. Returns **204** on success.