Skip to main content
teams.listChatMessageHostedContent returns hosted-content metadata for a chat message.

Example

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

Inputs

Pass { chatId: "chat-id", 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.getChatMessageHostedContent to download the bytes.