为 Microsoft 团队开发邮件扩展Develop messaging extensions for Microsoft Teams

重要

本节中的文章基于 v3 Bot 框架 SDK。The articles in this section are based on the v3 Bot Framework SDK. 如果您要查找当前文档(版本4.6 或 SDK 的更高版本),请参阅面向任务的交互和邮件扩展部分。If you're looking for current documentation (version 4.6 or later version of the SDK) see the Task-oriented interactions with Messaging Extensions section.

邮件扩展是用户与 Microsoft 团队中的应用程序进行接洽的一种强大方式。Messaging extensions are a powerful way for users to engage with your app from Microsoft Teams. 通过此功能,用户可以在服务中查询信息或向其发送信息,并将该信息以卡片形式发布到邮件中。With this capability, users can query or post information to and from your service and post that information, in the form of cards, right into a message.

邮件扩展卡的示例

邮件扩展将沿着 "撰写" 框的底部显示。Messaging extensions appear along the bottom of the compose box. 中内置了几个,如表情符号、Giphy 和不干胶标签。A few are built in, such as Emoji, Giphy, and Sticker. 选择 "更多选项" ()按钮以查看其他邮件扩展,包括从应用程序库添加的那些扩展或自行上载。Choose the More Options () button to see other messaging extensions, including those you add from the app gallery or upload yourself.

如何使用邮件扩展?How would you use messaging extensions? 以下是几种可能的情况:Here are a few possibilities:

  • 工作项和 bugWork items and bugs
  • 客户支持票证Customer support tickets
  • 使用率图表和报告Usage charts and reports
  • 图像和媒体内容Images and media content
  • 销售机会和潜在客户Sales opportunities and leads

邮件扩展类型Types of messaging extensions

目前,可以为团队创建两种类型的邮件扩展。There's primarily two kinds of messaging extensions you can create for Teams today. 下列主题将指导您完成创建它们的过程:The following topics will guide you through the process of creating them: