输入我的传入Webhook的Teams ConversationID

时间:2019-08-14 11:45:16

标签: json post postman webhooks microsoft-teams

我在团队频道中添加了Incoming Webhook。在我的Webhook上使用POST时,我会在Teams上获得MessageCard。这是我的json:

{
        "@type": "MessageCard",
        "themeColor": "0072C6",
        "title": "Placeholder",
        "text": "Placeholder",
          "from": {
      "id": "myid",
      "name": "myname" 
  }
}

现在,Webhook的ConversationID类似于以下内容:

19:22abc7ur64z8428kg592z33p993dhen3@thread.skype;messageid=933334115313

现在这是我的问题:当Webhook在团队上发布MessageCard时,我只能知道ConversationID的外观。我想知道:

我可以编辑我的json,以便决定这篇文章的ConversationID吗?

有关如何想象json的示例:

{
        "@type": "MessageCard",
        "themeColor": "0072C6",
        "title": "Ein WebBot konnte eine Frage nicht Beantworten",
        "text": "Placeholder",
          "from": {
      "id": "botdg@Dxq6fxrkMAI",
      "name": "teams",
  },
      "conversation": {
    "id": "19:22abc7ur64z8428kg592z33p993dhen3@thread.skype;messageid=585269569213"
  }
}

0 个答案:

没有答案