onChatMessagePosted watches one existing one-to-one, group, or meeting chat.
Example
automations/watch-teams-chat.automation.ts
Options
RequiredchatId: 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
ReturnsTeamsChatMessage & { chatId: string }, including body, message ID,
sender, timestamps, attachments, mentions, reactions, importance, reply parent,
subject, summary, locale, URL, and ETag when supplied by Graph.