Skip to main content
onChatMessagePosted watches one existing one-to-one, group, or meeting chat.

Example

automations/watch-teams-chat.automation.ts

Options

Required chatId: string is the opaque Graph chat ID. Optional static account defaults to the project Microsoft binding. Neither can be chosen from a runtime signal.

Trigger data

Returns TeamsChatMessage & { chatId: string }, including body, message ID, sender, timestamps, attachments, mentions, reactions, importance, reply parent, subject, summary, locale, URL, and ETag when supplied by Graph.