maton microsoft-teams message send

Send a message to a channel or chat

maton microsoft-teams message send [flags]

Options

-c, --channel <string>
Channel ID (with --team)
--chat <string>
Chat ID (mutually exclusive with --team/--channel)
--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
--html
Send as HTML instead of plain text
-q, --jq <expression>
Filter JSON output using a jq expression
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--team <string>
Team ID (with --channel)
--template <string>
Format JSON output using a Go template; see "maton help formatting"
-t, --text <string>
Message content (one of --text, --text-from-file required)
-F, --text-from-file <string>
Read message text from a file path (or '-' for stdin)

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton microsoft-teams message send --team 19:t... --channel 19:c... --text 'hello'
$ maton microsoft-teams message send --chat 19:abc... --text 'hi'
$ maton microsoft-teams message send --chat 19:abc... --text-from-file ./post.md
$ maton microsoft-teams message send --chat 19:abc... --text '<b>hi</b>' --html

See also