> ## 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.

# List chat messages

> List messages in a Microsoft Teams chat.

`listChatMessages` follows Graph pagination and returns normalized messages for
one chat.

## Example

```ts automations/read-teams-chat.automation.ts theme={null}
import { automation } from "automate.ax"
import { listChatMessages } from "automate.ax/teams"

export default automation("Read Teams chat", () => {
  listChatMessages({ chatId: "19:opaque-chat-id@thread.v2", limit: 100 })
})
```

## Inputs

Required `chatId` identifies the chat. Optional `limit` defaults to 100 and
allows 1–10,000. Optional `account` selects the Microsoft binding.

## Output

Returns `TeamsChatMessage[]` with normalized body, IDs, sender, timestamps,
attachments, mentions, reactions, importance, reply parent, subject, summary,
locale, web URL, and ETag fields. Attachments, mentions, and reactions default to
empty arrays; importance defaults to `normal`.
