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
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--team | TEAM_ID | no | Team ID for channel messages | ||
--channel | CHANNEL_ID | no | Channel ID for channel messages | ||
--chat | CHAT_ID | no | Chat ID for chat messages | ||
--body | TEXT | no | Message body text | ||
--stdin | no | Read message body from stdin | |||
--content-type | text|html | no | text | Content type | |
--adaptive-card | PATH | no | Path to adaptive card JSON file |
Examples
Send to a channel
teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "Deploy complete"
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |