# Message received

**Event:** `chat.message.channel`

## Description

A chat message addressed to the app.

Webhooks are delivered only when:
- Someone sends a direct message (DM) to the app
- The app is added to a chat group (channel) and that group receives messages
- Someone @mentions the app in a message

The Events API does NOT deliver every chat message in the account—only those where the app is a participant or mentioned.

For personal access tokens and OAuth apps authorized with personal access,
`chat:message:*` events are delivered only for chats the **token owner** can
see. Mentions in chats the owner cannot access are not delivered.

**Available events:**
- `chat:message:dm` — Direct messages to the app
- `chat:message:channel` — Messages in groups where the app is a member
- `chat:message:mention` — Messages that @mention the app (useful for bots that only respond when called)

## Webhook Payload

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | "message" | Yes | Message type identifier |
| `contentType` | "text" | "block" | "voice" | "poll" | Yes | Type of message content |
| `sender` | TaggedUUID | Yes | The message sender's Address ID |
| `chat` | TaggedUUID | Yes | ID of the chat in which the message was sent |
| `threadTimestamp` | integer | No | Key of the message that this is a reply to. Omitted if this is not a reply. |
| `timestamp` | integer | Yes | Key of the message within a chat, as Unix microseconds |
| `text` | string | No | Text of the message, formatted as github-flavored markdown |
| `items` | ChatItem[] | No | Items attached to this message |
| `blocks` | object[] | No | Block Kit blocks, present when contentType is `block`. See the [Block Kit guide](/docs/guides/block-kit). |
| `color` | string | No | Color strip on the message. One of: `good`, `warning`, `danger`, or a hex color like `#5B3FD9`. Present only on Block Kit messages. |
| `poll` | object | No | Poll content, present when contentType is `poll`. |
| `replyTimestamp` | integer | No | Timestamp of the message this message quotes (set via the `replyTimestamp` request field on chat.post). Present on quoted replies in DMs and within channel threads; omitted otherwise. |
| `reactions` | Reaction[] | No | Reactions on this message |

**TaggedUUID**:

A UUID prefixed by a tag identifying the specific type of object
**TaggedUUID**:

*See TaggedUUID above*

**ChatItem** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | string | Yes | UUID identifying this item |
| `type` | "photo" | "blob" | Yes | Type of item:  - **photo**: Images with inline preview and thumbnail   - image/jpeg, image/png, image/gif, image/webp  - **blob**: Any other file type (download only, no preview)   - application/octet |
| `mime` | string | No | MIME type of the file (e.g., "application/octet-stream"). May be omitted for photo items where the type is inferred from the image format.  |
| `created` | string | Yes | Timestamp when the item was created |
| `name` | string | Yes | Name of the item (typically the filename). |
| `url` | string | Yes | URL for the uploaded item. |
| `thumbnail` | string | No | URL for a thumbnail of the uploaded item (photo type only). This may be equal to the item's main URL if it is suitable to use as a thumbnail.  |
| `size` | integer | No | Size of the item in bytes |
| `width` | integer | No | Width in pixels (images only) |
| `height` | integer | No | Height in pixels (images only) |

**poll**:

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `question` | string | No | The poll question. |
| `options` | object[] | No | The poll answer options. |
| `allowMultipleAnswers` | boolean | No | Whether voters can select multiple options. |
| `closesAt` | string | No | When the poll closes (RFC-3339). Omitted if no close time is set. |

**options** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | string | No | Unique option identifier. |
| `text` | string | No | Option display text. |

**Reaction** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | string | Yes | Always `"reaction"`. |
| `chat` | TaggedUUID | Yes | The chat containing the message that was reacted to. |
| `recipient` | TaggedUUID | No | The app address (bot or sender profile) this webhook was delivered to. |
| `messageId` | string | Yes | ID of the message that was reacted to. |
| `messageTimestamp` | integer | Yes | Timestamp of the message that was reacted to. |
| `threadTimestamp` | integer | No | Timestamp of the thread root, when the message is in a thread. Omitted for top-level messages. |
| `messageSender` | TaggedUUID | Yes | The author of the message that was reacted to (not the person who added the reaction). Provided so you can filter deliveries client-side.  |
| `chatType` | string | Yes | The type of chat the message is in (e.g. `dm`, `channel`). |
| `reactions` | object[] | Yes | The full set of reactions currently on the message. |

**reactions** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `code` | string | Yes | The reaction shortcode, delivered colon-wrapped (e.g. `:thumbs_up:`, `:white_check_mark:`, `:heart:`). Custom emoji use the form `:name::fileId:`. When comparing against a `codes` subscription filter, |
| `emojiText` | string | No | The rendered emoji character (e.g. `👍`). May be empty for non-emoji reactions such as poll votes. |
| `reactors` | TaggedUUID[] | Yes | The users who added this reaction. |

---

*Machine-readable API documentation.*
*Full documentation: https://developer.ro.am/docs/webhooks-v0-dev/chat-message-channel*
