从 Teams 中的任何类型的聊天(个人、groupChat 或频道)中获取成员?
Get members from any type of a chat in Teams (personal, groupChat, or channel)?
我有一个用于 MS TEAMS 的消息扩展应用程序。该应用程序将预装在某些组织内部。我应该得到任何对话类型的成员。有一种方法可以通过图表
https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members。我这里用的是申请权限
但看起来我只能为具有频道的“组”(团队在 Teams 中)获取用户。
我从 ChannelAccount(命名空间 Microsoft.Bot.Schema)获得了 4 种对话类型:
- 个人
- 群聊,
- 频道,
- 无
此外,还有 bool isGroup 属性。
如何获得特定聊天的成员,可以是任何对话类型?
您可以使用 this set of endpoints to access both group chat and channel members. You don't technically need to get the "members" of a 1-1 chat, because it is only individual users (if you add a 3rd user, for instance, it will switch to becoming a group chat, I think). If you -do- want to get the -existence- of these 1-1 chats, you can use this endpoint。请注意,这些都是测试版端点,因此需要注意一些事项。
我有一个用于 MS TEAMS 的消息扩展应用程序。该应用程序将预装在某些组织内部。我应该得到任何对话类型的成员。有一种方法可以通过图表 https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members。我这里用的是申请权限
但看起来我只能为具有频道的“组”(团队在 Teams 中)获取用户。 我从 ChannelAccount(命名空间 Microsoft.Bot.Schema)获得了 4 种对话类型:
- 个人
- 群聊,
- 频道,
- 无
此外,还有 bool isGroup 属性。
如何获得特定聊天的成员,可以是任何对话类型?
您可以使用 this set of endpoints to access both group chat and channel members. You don't technically need to get the "members" of a 1-1 chat, because it is only individual users (if you add a 3rd user, for instance, it will switch to becoming a group chat, I think). If you -do- want to get the -existence- of these 1-1 chats, you can use this endpoint。请注意,这些都是测试版端点,因此需要注意一些事项。