# place.stream.chat.message

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.chat.message)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.chat.message/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.chat.message/examples)

## Definitions

### `place.stream.chat.message`

**Type**: `record`

Record containing a Streamplace chat message.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | The primary message content. May be an empty string, if there are embeds. |
| `reply` | `ref` → `#replyRef` | No |  |
| `facets` | `array` | No | Annotations of text (mentions, URLs, etc) |
| `streamer` | `string` (did) | Yes | The DID of the streamer whose chat this is. |
| `createdAt` | `string` (datetime) | Yes | Client-declared timestamp when this message was originally created. |

### `place.stream.chat.message#replyRef`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `root` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `parent` | `ref` → `com.atproto.repo.strongRef` | Yes |  |

## Raw Schema

```json
{
  "id": "place.stream.chat.message",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "createdAt",
          "streamer"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 3000,
            "description": "The primary message content. May be an empty string, if there are embeds.",
            "maxGraphemes": 300
          },
          "reply": {
            "ref": "#replyRef",
            "type": "ref"
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "place.stream.richtext.facet",
              "type": "ref"
            },
            "description": "Annotations of text (mentions, URLs, etc)"
          },
          "streamer": {
            "type": "string",
            "format": "did",
            "description": "The DID of the streamer whose chat this is."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when this message was originally created."
          }
        }
      },
      "description": "Record containing a Streamplace chat message."
    },
    "replyRef": {
      "type": "object",
      "required": [
        "root",
        "parent"
      ],
      "properties": {
        "root": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
