Until now to get Microsoft Teams messages I check the subject
field to see if it contains "IM" as described in the documentation:
GET messages returns chats in Microsoft Teams
In both the v1 and beta endpoints, the response of
GET /users/id/messages
includes the user's Microsoft Teams chats that occurred outside the scope of a team or channel. These chat messages have "IM" as their subject.
For the past few days, that "IM" is no longer showing up in the subject
of the message, so now we have no information to determine if it's a Teams chat.