Skip to main content

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​

OptionValueRequiredEnvDefaultDescription
--teamTEAMnoTeam ID (for channel messages)
--channelCHANNELnoChannel ID (for channel messages)
--chatCHATnoChat ID (for chat messages)
--replyREPLYnoReply ID (for a reply within a channel thread)
MESSAGE_IDMESSAGE_IDnoMessage ID
--messageMESSAGEnoMessage ID

Examples​

List the message attachment inventory​

teams message attachments list --chat "$CHAT_ID" "$MESSAGE_ID" --output json

Exit Codes​

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
5not found
6rate limited

See Also​