向群组中的用户发送消息

Send Message to Users In Group

我在 azure 上有一个小组,我已经能够使用 MS Graph API.

获得该小组的成员

我有这种格式的用户详细信息:

{
      '@odata.type': '#microsoft.graph.user',
      id: 'xxx-xxxxx-xxxxx',
      businessPhones: [],
      displayName: 'USER__FULL_NAME',
      givenName: 'USER_FIRST_NAME',
      jobTitle: null,
      mail: 'USER_EMAIL',
      mobilePhone: null,
      officeLocation: null,
      preferredLanguage: 'en-US',
      surname: 'USER_LAST_NAME',
      userPrincipalName: 'USER_EMAIL'
}

我想使用 BotFramework Node.js SDK 向群组成员发送消息。

我已经检查过Microsoft Bot Service Documentation,我找不到任何相关的东西

有两种方法:

  1. 通过机器人的 Teams 频道使用主动消息。
    https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet
  2. 如果您没有 need/want 机器人,可以选择 'just' 开始新的 1:1 或使用 Graph 通话进行群聊。
    https://docs.microsoft.com/en-us/graph/api/chat-post?view=graph-rest-beta&tabs=http