Skip to main content

teams message attachments list

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.3.0. Do not edit it by hand.

List attachments and inline images in a message.

Synopsis

teams message attachments list (--team TEAM_ID --channel CHANNEL_ID [--reply REPLY_ID] | --chat CHAT_ID) [MESSAGE_ID | --message MESSAGE_ID]

Options

OptionValueRequiredEnvDefaultDescription
--teamTEAM_IDnoTeam ID for channel messages
--channelCHANNEL_IDnoChannel ID for channel messages
--chatCHAT_IDnoChat ID for chat messages
--replyREPLY_IDnoReply ID for a reply within a channel thread
--messageMESSAGE_IDnoMessage ID

Examples

List downloadable message media

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