Skip to content

Send

Send message

Synopsis

Send messages to one or more Teams chats using templates, raw strings, or text files. See Message templates for template syntax and examples.

Usage

teams-cli chats messages send [flags]

Options

      --chats strings         Chats list
      --data string           Template data
      --dry-run               Preview only
  -h, --help                  help for send
      --ignore-errors         Continue on error
      --message string        Message content
      --message-file string   Message file
      --template string       Template file

Examples

Send templated messages

teams-cli chats messages send --template msg.txt --data recipients.yaml

Send raw message to specific chats

teams-cli chats messages send --message "Hello!" --chats user1@domain.com,user2@domain.com

Send message from file

teams-cli chats messages send --message-file msg.txt --chats user@domain.com

Dry run to preview

teams-cli chats messages send --template msg.txt --data recipients.yaml --dry-run

TUI Preview

Chats messages send TUI

Chats messages send TUI (alternate)

Chats messages send TUI (alternate 2)