Skip to main content

teams message send

Auto-generated reference

This page is generated from teams --help-json for release v0.1.0. Do not edit it by hand.

Send a message to a channel or chat.

Synopsis

teams message send (--team TEAM_ID --channel CHANNEL_ID | --chat CHAT_ID) (--body TEXT | --stdin)

Options

OptionValueRequiredEnvDefaultDescription
--teamTEAM_IDnoTeam ID for channel messages
--channelCHANNEL_IDnoChannel ID for channel messages
--chatCHAT_IDnoChat ID for chat messages
--bodyTEXTnoMessage body text
--stdinnoRead message body from stdin
--content-typetext|htmlnotextContent type
--adaptive-cardPATHnoPath to adaptive card JSON file

Examples

Send to a channel

teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "Deploy complete"

Exit Codes

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

See Also