# ai.newnal.trustsquare.chatMessage

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.chatMessage)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.chatMessage/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.chatMessage/examples)

## Definitions

### `ai.newnal.trustsquare.chatMessage`

**Type**: `record`

A live-chat message in a Trust Square whose subject is a live stream.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `square` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `text` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A live-chat message in a Trust Square whose subject is a live stream.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "square": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          }
        },
        "required": [
          "square",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.trustsquare.chatMessage",
  "lexicon": 1
}
```
