Skip to main content

teams message get

Auto-generated reference

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

Get a specific message.

Synopsis

teams message get --team TEAM_ID --channel CHANNEL_ID [MESSAGE_ID | --message MESSAGE_ID] [--with-attachments]

Options

OptionValueRequiredEnvDefaultDescription
--teamTEAM_IDyesTeam ID
--channelCHANNEL_IDyesChannel ID
--messageMESSAGE_IDnoMessage ID
--with-attachmentsnoInclude 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