# im +chat-messages-list > **Prerequisite:** Read [`../lark-shared/SKILL.md`](../../lark-shared/SKILL.md) first to understand authentication, global parameters, and safety rules. Fetch the message list for a conversation. Supports both group chats and direct messages. By default the response carries a `reactions` block (counts + details from `im.reactions.batch_query`) on every message that has reactions, and `update_time` on messages that were actually edited. Thread replies expanded via auto-`thread_replies` participate in the same batched enrichment. Pass `--no-reactions` to skip the extra round-trip. Pass `--download-resources` to additionally download message resources (image/file/audio/video/media + post-embedded, excluding stickers) into `./lark-im-resources/` and attach a `resources` block — off by default. See [message enrichment](lark-im-message-enrichment.md) for the full contract. This skill maps to the shortcut: `lark-cli im +chat-messages-list` (internally calls `GET /open-apis/im/v1/messages`, and automatically resolves the p2p chat_id when needed). ## Commands ```bash # Get group chat messages (json output by default) lark-cli im +chat-messages-list --chat-id oc_xxx # Get direct messages with a user (pass open_id and resolve p2p chat_id automatically) lark-cli im +chat-messages-list --user-id ou_xxx # Specify a time range (ISO 8601) lark-cli im +chat-messages-list --chat-id oc_xxx --start "2026-03-10T00:00:00+08:00" --end "2026-03-11T00:00:00+08:00" # Specify a time range (date only) lark-cli im +chat-messages-list --chat-id oc_xxx --start 2026-03-10 --end 2026-03-11 # Control sort order and page size (max 50) lark-cli im +chat-messages-list --chat-id oc_xxx --order asc --page-size 20 # Pagination lark-cli im +chat-messages-list --chat-id oc_xxx --page-token "xxx" # JSON output lark-cli im +chat-messages-list --chat-id oc_xxx --format json ``` ## Parameters | Parameter | Required | Description | |------|------|------| | `--chat-id ` | One of two | Specify the conversation by its chat_id directly (e.g., group chat `oc_xxx`) | | `--user-id ` | One of two | Specify a DM conversation by the other user's open_id (`ou_xxx`); p2p chat_id is resolved automatically. Requires user identity (`--as user`); not supported with bot identity | | `--start