Please refer to https://learn.microsoft.com/en-us/graph/teams-changenotifications-chatmessage#subscribe-to-changes-at-the-user-level
Notifications for new user chats
Devis Lucato
1
Reputation point Microsoft Employee
Whenever someone starts messaging me, I would like to receive a notification "new chat created", so that I can subscribe to that specific chat via https://graph.microsoft.com/v1.0/subscriptions with resource="/chats/ID/messages".
Is it possible to be notified when someone starts a new chat? I tried subscribing to the resource /chats/getAllMessages?model=A
but I don't have sufficient permissions, and I'd like to scope the subscription only to my chats, not the entire organization, something like resource = /me/chats
.
Any suggestion?
1 answer
Sort by: Most helpful
-
Ramjot Singh 861 Reputation points Microsoft Employee
2022-06-01T21:11:28.02+00:00