MS Teams - 从外部应用程序向用户发送消息

MS Teams - Sending Messages to Users from External App

我工作的组织以前使用 Slack 作为我们的协作工具。借助 Slack,我能够在工作区中注册一个应用程序,并使用提供的访问令牌调用 API 从我们的外部 Web 应用程序向用户发送消息。这非常简单。没有需要编码的中间应用程序来启用此消息传递。

最近,我们已经从 Slack 过渡到 MS Teams,在查看 Graph API documentation, there does not currently appear to be a way to proactively send a message from an external application to a user. The available permissions for the chatMessage 端点时,表明仅提供代表特定用户发送消息的委托权限;没有代表外部应用程序发送消息的权限。

是否可以使用 Graph API 直接从外部应用程序向用户发送消息?还是必须创建机器人应用程序才能实现此目的?

必须是机器人应用才能达到上述要求。 ChatMessage 端点仅代表用户发送消息。