> ## 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 chat message

> Get one message from a Microsoft Teams chat.

`getChatMessage` retrieves a chat message by its chat and message IDs.

## Example

```ts automations/get-teams-chat-message.automation.ts theme={null}
import { automation } from "automate.ax"
import { getChatMessage } from "automate.ax/teams"

export default automation("Get Teams chat message", () => {
  getChatMessage({
    chatId: "19:opaque-chat-id@thread.v2",
    messageId: "message-id",
  })
})
```

## Inputs

`chatId` and `messageId` are required opaque strings. Optional `account` selects
the Microsoft binding. Inputs accept compatible signals.

## Output

Returns the complete normalized `TeamsChatMessage`, including `messageId`, body,
importance, sender, timestamps, attachments, mentions, reactions, and optional
provider metadata.
