teams message attachments list
Auto-generated reference
This page is generated from checked-in CLI metadata for release v0.9.0. Do not edit it by hand.
List attachments and inline images in a message
Synopsis
teams message attachments list [OPTIONS] [MESSAGE_ID]
Options
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--team | TEAM | no | Team ID (for channel messages) | ||
--channel | CHANNEL | no | Channel ID (for channel messages) | ||
--chat | CHAT | no | Chat ID (for chat messages) | ||
--reply | REPLY | no | Reply ID (for a reply within a channel thread) | ||
MESSAGE_ID | MESSAGE_ID | no | Message ID | ||
--message | MESSAGE | no | Message ID |
Examples
List the message attachment inventory
teams message attachments list --chat "$CHAT_ID" "$MESSAGE_ID" --output json
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 5 | not found |
| 6 | rate limited |