Skip to main content
teams.onChannelMessagePosted watches one team channel and emits both root messages and replies.

Example

automations/watch-teams-channel.automation.ts

Options

Trigger data

Returns TeamsChatMessage & { teamId: string; channelId: string }. The message includes body, ID, sender, timestamps, attachments, mentions, reactions, importance, optional replyToId, and Microsoft metadata. replyToId distinguishes replies from root posts. Options are static subscription configuration and can’t use runtime signals.