In the wake of the new beta API for it, I have written a script that exports Teams one to one chats to a text file. This is so that, after migrating to a new tenant, my users can have their chat history in some place. After finishing the code and trying it on my first user, I found that I can only pull the most recent 20 messages per chat.
Here is the API command I am using: https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/beta/api/chatmessage-list.md
Is there any way to turn off throttling, or is there some step I am missing so that I can export all chat messages? I'm new to the Graph API.