Skip to main content

teams message get

Auto-generated reference

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

Get a specific message

Synopsis​

teams message get [OPTIONS] --team <TEAM> --channel <CHANNEL> [MESSAGE_ID]

Options​

OptionValueRequiredEnvDefaultDescription
--teamTEAMyesTeam ID
--channelCHANNELyesChannel ID
MESSAGE_IDMESSAGE_IDnoMessage ID
--messageMESSAGEnoMessage ID
--with-attachmentsWITH_ATTACHMENTSnofalseInclude an inventory of attachments and inline images

Examples​

Read message and attachment inventory​

teams message get --team "$TEAM_ID" --channel "$CHANNEL_ID" "$MESSAGE_ID" --with-attachments --output json

Exit Codes​

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

See Also​