使用 Python 的 Microsoft Teams 机器人

Microsoft Teams bot using Python

我正在做一个项目,涉及将自适应卡片发送到群聊(而非频道),我还想收到用户的任何回复并跟进以执行其他操作(更新卡片、记录回复、评论ETC...)。根据我收集到的信息,"Incoming Webhooks" 无法向群聊发送可操作的消息,快速搜索让我相信创建 Teams 机器人是解决此问题的最佳解决方案。

我的问题是: 我可以使用 Python 创建 Teams 机器人吗?有什么缺点吗v.s。使用其他语言?

我尝试过的事情: Microsoft Flow(检索响应和使用响应更新卡片的限制)

完全可以做到!当然,您需要提高 Creating a bot for Microsoft Teams, which in turn builds on the Microsoft Bot Framework underneath, so there's some learning there, but Python is a very popular language for this. Just as one example, see this topic 之类的技能,并注意 "python" 是显示示例的语言之一。

除了我在上面 link 编辑的 Teams 文章之外,一个好的起点可能是 link:Create a bot with the Bot Framework SDK for Python