# org.4906.temp.message

> Published by [4906.org](https://lexicon.garden/identity/did:plc:3qkcles2iorrfuzncbm2xgd2)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:3qkcles2iorrfuzncbm2xgd2/org.4906.temp.message)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3qkcles2iorrfuzncbm2xgd2/org.4906.temp.message/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3qkcles2iorrfuzncbm2xgd2/org.4906.temp.message/examples)

## Definitions

### `org.4906.temp.message`

**Type**: `record`

A message sent in a channel.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | The contents of the message. |
| `facets` | `array` | No | Annotations of text (mentions, URLs, emoji, etc) |
| `channel` | `string` (at-uri) | Yes | Channel that the message was sent in. |
| `nickname` | `string` | No | A nickname, replaces the author's display name if present. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "org.4906.temp.message",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "channel",
          "createdAt"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 16384,
            "minLength": 1,
            "description": "The contents of the message.",
            "maxGraphemes": 2000
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "org.4906.temp.facet",
              "type": "ref"
            },
            "description": "Annotations of text (mentions, URLs, emoji, etc)"
          },
          "channel": {
            "type": "string",
            "format": "at-uri",
            "description": "Channel that the message was sent in."
          },
          "nickname": {
            "type": "string",
            "maxLength": 640,
            "minLength": 1,
            "description": "A nickname, replaces the author's display name if present.",
            "maxGraphemes": 64
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A message sent in a channel."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
