# social.colibri.message

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Description

A message sent in a channel on Colibri.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.message)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.message/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.message/examples)

## Definitions

### `social.colibri.message`

**Type**: `record`

A message sent in a channel on Colibri

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | The message content. |
| `$type` | `string` (nsid) | No | The type of the record. |
| `edited` | `boolean` | No | Whether this message has been edited. |
| `facets` | `array` | No | Annotations of sections of the text. |
| `parent` | `string` (record-key) | No | The record key of a message this message is replying to. |
| `channel` | `string` (record-key) | Yes | The channel this message was sent in. |
| `createdAt` | `string` (datetime) | Yes | When the message was sent. |
| `attachments` | `array` | No | An array of attachment objects for this message. |

### `social.colibri.message#attachment`

**Type**: `object`

A file attached to a message.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blob` | `blob` | Yes | The attached file. |
| `name` | `string` | No | The original filename. |

## Raw Schema

```json
{
  "id": "social.colibri.message",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "createdAt",
          "channel"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2048,
            "description": "The message content."
          },
          "$type": {
            "type": "string",
            "format": "nsid",
            "description": "The type of the record."
          },
          "edited": {
            "type": "boolean",
            "default": false,
            "description": "Whether this message has been edited."
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "lex:social.colibri.richtext.facet",
              "type": "ref"
            },
            "description": "Annotations of sections of the text."
          },
          "parent": {
            "type": "string",
            "format": "record-key",
            "description": "The record key of a message this message is replying to."
          },
          "channel": {
            "type": "string",
            "format": "record-key",
            "description": "The channel this message was sent in."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the message was sent."
          },
          "attachments": {
            "type": "array",
            "items": {
              "ref": "lex:social.colibri.message#attachment",
              "type": "ref"
            },
            "description": "An array of attachment objects for this message."
          }
        }
      },
      "description": "A message sent in a channel on Colibri"
    },
    "attachment": {
      "type": "object",
      "required": [
        "blob"
      ],
      "properties": {
        "blob": {
          "type": "blob",
          "description": "The attached file."
        },
        "name": {
          "type": "string",
          "maxLength": 256,
          "description": "The original filename."
        }
      },
      "description": "A file attached to a message."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 2,
  "description": "A message sent in a channel on Colibri."
}
```
