Reputation: 169
I am trying to figure out how to use Microsoft Graph API to get notified of incoming Teams messages.
I easily find the endpoint to send a message. Create chatMessage in a channel
But I do not find an endpoint to get API messages, either via polling or better via a web hook.
Is there a way to get a user incoming messages via REST (assuming proper authentication) ?
Upvotes: 1
Views: 539
Reputation: 1557
You can get change notifications (i.e. set up a webhook) for Teams channel messages using the beta endpoint of Graph. See the subscription beta documentation and "Create subscription" beta documentation for a list of supported resources, including chatMessage
.
Upvotes: 1