Skip to main content
teams.listChannelMessageHostedContent returns hosted-content metadata for a channel message.

Example

automations/teams-list-channel-message-hosted-content.automation.ts

Inputs

Pass { team: "Engineering", channel: "General", messageId: "message-id" }. The optional second argument { account } selects a Microsoft binding.

Output

Returns contentId and optional contentType metadata. Pass the opaque contentId to teams.getChannelMessageHostedContent to download the bytes.