到目前为止,为了获取 Microsoft Teams 消息,我会检查 subject
字段,看看它是否包含“IM”如 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.
过去几天,消息的主题
中不再显示“IM”,因此现在我们没有信息来确定这是否是 Teams 聊天。
最佳答案
“已知问题”是 /messages
返回这些消息。听起来他们针对这个问题推出了修复程序。由于这被认为是一个错误,因此当前状态是它的设计工作方式 - /messages
旨在仅返回电子邮件。
这就是为什么依赖已知问题不是一个好主意;当他们解决问题时,它会破坏您的代码。目前似乎没有一种机制可以检索这些消息,但是基于此 PR in the documentation ,看来马上就要来了。
关于microsoft-graph-api - 无法再确定 Microsoft Teams 的聊天记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55631795/