I have been using "https://graph.microsoft.com/beta/chats/{id}/messages" this Ms-Graph API to retrieve the Chat Messages for (Direct/Group Chat) in Microsoft Teams. I get first set of response (i.e. 20 Messages) but when i try to get the next set of messages using the "@odata.nextLink" property i encountered "Bad Request" error.
Is there any other way to retrieve the Next set of Chat Messages from Group/Direct Chat in Microsoft Teams?