首页 > 解决方案 > 发送多个请求 webhook 团队

问题描述

我正在尝试同时发送多张留言卡

当我只向邮递员发出一条消息的请求时,它可以工作,例如:

{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "Summary",
  "title": "Connector Card HTML formatting",
  "sections": [
    {
        "text": "This is some <strong>bold</strong> text"
    },
}

现在我在做:

{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "Summary",
  "title": "Connector Card HTML formatting",
  "sections": [
    {
        "text": "This is some <strong>bold</strong> text"
    },
},
{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "Summary",
  "title": "Connector Card HTML formatting",
  "sections": [
    {
        "text": "This is some <strong>bold</strong> text"
    },
}

现在,我遇到了这个错误:

Bad payload received by generic incoming webhook.

我的问题在哪里?

谢谢你的帮助

标签: jsonmicrosoft-teams

解决方案


目前您无法在一个请求中发送多条消息。这是设计使然。您能否提高用户的声音,也请查看此文档以获取更多信息


推荐阅读