从团队中的任何类型的聊天中获取成员(个人,groupChat或频道)? [英] Get members from any type of a chat in Teams (personal, groupChat, or channel)?

查看:63
本文介绍了从团队中的任何类型的聊天中获取成员(个人,groupChat或频道)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于MS TEAMS的消息扩展应用程序.该应用程序将被预先安装在某些组织内部.我应该得到任何对话类型的成员.有一种通过图的方法 https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members .我在这里使用应用程序许可.

I have a message extension app for MS TEAMS. This app will be preinstalled inside some organization. I should get members of any conversation type. There is a way via a graph https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members. I use application permission here.

但是看起来我只能为群组"用户吸引用户.(一个团队在Teams内部),它具有渠道.我从ChannelAccount(命名空间Microsoft.Bot.Schema)中获得了4种会话类型:

But it looks like I can get users only for "group" (a team is inside Teams), which has channels. I got 4 types of conversation type from ChannelAccount (namespace Microsoft.Bot.Schema):

  • 个人
  • groupChat,
  • 频道

还有bool isGroup属性.

Also, there is bool isGroup property.

如何获取特定对话的成员,可以是任何对话类型?

How can I get members of a specific chat, which can be any conversation type?

推荐答案

您可以使用

You can use 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. Note that these are both BETA endpoints, so some caveats apply.

这篇关于从团队中的任何类型的聊天中获取成员(个人,groupChat或频道)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆