teams.onChatMessagePosted watches one existing one-to-one, group, or meeting chat.
Example
automations/watch-teams-chat.automation.ts
Options
The trigger requires the opaque Graph chat ID aschatId: string. Optional static account defaults to the project Microsoft binding. A runtime signal can’t choose either value.
Trigger data
ReturnsTeamsChatMessage & { chatId: string } with body, message ID, sender, timestamps, attachments, mentions, reactions, importance, reply parent, subject, summary, locale, URL, and Graph ETag when available.