Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Message → Reply with Attachment

AI-generated

Summary

Replies to an existing Teams message with a file attachment in a chat or channel. The attachment is supplied as JSON; attachment processing is enabled by default and can be controlled with Enable Processing.

Inputs

  • Recipient Type (required) — Choose Channel or Chat (direct message).
  • Team ID (required) — For a channel reply, the ID of the team containing the channel.
  • Channel ID (required) — For a channel reply, the ID of the channel containing the thread.
  • Conversation ID (required) — For a chat reply, the ID of the conversation containing the message.
  • Reply To ID (required) — ID of the message to reply to. Use the Graph message ID of the thread root for channel replies or the Bot Framework activity ID for chat replies.
  • Attachment Data (required) — JSON object describing the attachment, such as its name, content type, and content or content URL.
  • Enable Processing — Whether to process or optimize the attachment before sending; defaults to true.

Output shape

A single item containing the reply response from the Teams API.

The operation sends a reply with the attachment to the selected chat or channel thread. Attachment data must be valid JSON and satisfy Teams attachment requirements.

Links

Discussion