maton microsoft-teams message list

List messages in a channel or chat

maton microsoft-teams message list [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
-q, --jq <expression>
Filter JSON output using a jq expression
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--select <string>
Comma-separated fields to return
--team <string>
Team ID (with --channel)
--template <string>
Format JSON output using a Go template; see "maton help formatting"
--top <string>
OData $top — max results per page

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 list --team 19:t... --channel 19:c...
$ maton microsoft-teams message list --chat 19:abc...
$ maton microsoft-teams message list --team 19:t... --channel 19:c... --top 50
$ maton microsoft-teams message list --chat 19:abc... --paginate

See also