我正在开发一个聊天机器人,并希望在用户单击按钮时向新聊天发送消息。我无法传递 Header 值。
AdaptiveCard card = new AdaptiveCard();
card.Actions.Add(new HttpAction()
{
Url="https://directline.botframework.com/v3/directline/conversations/ConversationID/activities",
Title = "Yes",
Method = "Post",
Headers = "Authorization : SecretKey",
Body = "{ \"type\": \"message\", \"from\": { \"id\": \"vid\", \"name\":\"vname\" }, \"text\": \"$" + "yes_person" + "$***" + convId + "***" + "\" }"
});