Delta query supports for chats

Rajitha Perera 106 Reputation points
2023-01-19T09:33:31.1566667+00:00

In order to automatically update the chat list when a new message is received, we are considering using delta queries. This method would allow us to only retrieve new or updated chats, rather than manually refreshing the entire list. However, we have not been able to find any documentation on the support of delta queries for chats in the current API.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Siddharth Gautam 865 Reputation points
    2023-01-19T16:09:50.13+00:00

    Hello Rajitha Perera,

    Thanks for posting!

    As per the Microsoft Graph Documentation, Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel.

    Please refer the below link for same.

    ChatMessage: delta

    Note: Delta will only return messages within the last eight months. You can use GET /teams/{team-id}/channels/{channel-id}/messages to retrieve older messages.

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.