> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get channel message

> Get one root or reply message from a Teams channel.

`getChannelMessage` retrieves one normalized channel message. To retrieve a
reply, provide the root message's ID as `replyToMessageId` and the reply's ID as
`messageId`.

## Example

```ts automations/get-teams-reply.automation.ts theme={null}
import { automation } from "automate.ax"
import { getChannelMessage } from "automate.ax/teams"

export default automation("Get Teams reply", () => {
  getChannelMessage({
    team: "Engineering",
    channel: "General",
    replyToMessageId: "root-message-id",
    messageId: "reply-message-id",
  })
})
```

## Inputs

`team`, `channel`, and `messageId` are required strings. `replyToMessageId` is
optional. Team and channel accept exact names or IDs; message fields are opaque
IDs. Optional `account` selects the Microsoft binding.

## Output

Returns one `TeamsChatMessage` with normalized body, sender, timestamps,
attachments, mentions, reactions, importance, reply, subject, summary, locale,
web URL, and ETag fields.
