Skip to main content

teams message reply

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.9.0. Do not edit it by hand.

Reply to a channel message

Synopsis​

teams message reply [OPTIONS] --team <TEAM> --channel <CHANNEL> --message-id <MESSAGE_ID>

Options​

OptionValueRequiredEnvDefaultDescription
--teamTEAMyesTeam ID
--channelCHANNELyesChannel ID
--message-idMESSAGE_IDyesMessage ID to reply to
--bodyBODYnoReply body text
--stdinSTDINnofalseRead message body from stdin
--content-typeCONTENT_TYPEnotextContent type: text or html
--imageIMAGEnoImage file to send inline, like a pasted screenshot (repeatable)
--attachATTACHnoFile to upload and attach (repeatable; needs a Files.ReadWrite scope)
--mentionUSERnoUser to @mention (repeatable): an Entra object ID or UPN

Examples​

No command-specific examples are published yet.

Exit Codes​

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

See Also​