# at.turtleme.chat.message

> Published by [turtleme.at](https://lexicon.garden/identity/did:plc:f4h4tl43o4vx4hv2xps6siuz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.chat.message)
- [Documentation](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.chat.message/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.chat.message/examples)

## Definitions

### `at.turtleme.chat.message`

**Type**: `record`

A single message sent to a turtle meat chat room. Messages live in the author's own repository; a room is assembled by reading the backlinks that point at it.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `room` | `string` (uri) | Yes | The room the message was sent to. 'https://turtleme.at/chat/global' is the global room. Because this is a link, a backlink index can list a room's messages without a dedicated AppView. |
| `text` | `string` | Yes | The message body. It may carry Old School RuneScape style chat codes in the form 'colour:effect:message', for example 'red:wave:hello there'. A client that does not recognise the codes should display the string verbatim rather than stripping it. |
| `createdAt` | `string` (datetime) | Yes | Timestamp declared by the sending client. It is not verified, so readers that care about ordering should prefer the record key. |

## Raw Schema

```json
{
  "id": "at.turtleme.chat.message",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "room",
          "createdAt"
        ],
        "properties": {
          "room": {
            "type": "string",
            "format": "uri",
            "description": "The room the message was sent to. 'https://turtleme.at/chat/global' is the global room. Because this is a link, a backlink index can list a room's messages without a dedicated AppView."
          },
          "text": {
            "type": "string",
            "maxLength": 1000,
            "description": "The message body. It may carry Old School RuneScape style chat codes in the form 'colour:effect:message', for example 'red:wave:hello there'. A client that does not recognise the codes should display the string verbatim rather than stripping it.",
            "maxGraphemes": 200
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp declared by the sending client. It is not verified, so readers that care about ordering should prefer the record key."
          }
        }
      },
      "description": "A single message sent to a turtle meat chat room. Messages live in the author's own repository; a room is assembled by reading the backlinks that point at it."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
