1
votes

I'm trying to create a subscription to receive the contents of all new messages sent within a private Team, and so far it appears I have to configure a bot / webhook within Teams (and only messages @mentioned to that bot / webhook will be sent to me), or otherwise use the Graphs API (I can't determine whether the same caveat exists with @mentions).

The use case is to allow members of the Team to post messages, and for my listening application to consume the message contents and take an action (turn on a light, etc.. but external to Teams). I don't anticipate needing to write anything back into the Team.

I found this link in another post: https://blog.thoughtstuff.co.uk/2020/01/how-to-use-the-new-webhooks-for-microsoft-teams-channel-chat-messages/

Has anyone successfully been able to subscribe to all messages within a private team for a similar use case?

Thank you!

1
You don't say if your using delegate permissions or application permissions. If it's application permissions you are most likely hitting the protected API requirement. See docs.microsoft.com/en-us/graph/teams-protected-apisShane Powell
@N Mennear, To track messages and replies in a channel, you can create a change notification subscription at a channel level. Please follow this documentation.Sridevi-MSFT
Please let us know does that help clarify.Sridevi-MSFT
@N Mennear, Are you still facing the issue.Sridevi-MSFT

1 Answers

0
votes

Posting the Answer for better knowledge

Copying from @Sridevi comments

To track messages and replies in a channel, you can create a change notification subscription at a channel level. Please follow this documentation.