使用botframework rest api与skype bot一起附加.txt、.pdf或zip文件
我试图使用将.txt和.pdf文件附加到skype bot,但出现以下错误:使用botframework rest api与skype bot一起附加.txt、.pdf或zip文件,botframework,microsoft-skype-bot,Botframework,Microsoft Skype Bot,我试图使用将.txt和.pdf文件附加到skype bot,但出现以下错误: { "error": { "code": "BadArgument", "message": "Unknown attachment type" } } 同时我发现,有谁能确认pdf或文本文件附件是否受到限制,因为他们的api中没有明确的声明? 我尝试了这种格式: { "type": "message", "recipient": { "id": "xxxxxxxJ0
{
"error": {
"code": "BadArgument",
"message": "Unknown attachment type"
}
}
同时我发现,有谁能确认pdf或文本文件附件是否受到限制,因为他们的api中没有明确的声明?
我尝试了这种格式:
{
"type": "message",
"recipient": {
"id": "xxxxxxxJ0niMZOII93xxxxL1E"
},
"text": "Here's a picture of the duck I was telling you about.",
"attachments": [
{
"contentType": "application/pdf",
"contentUrl": "myfileurl",
"name": "filename.pdf"
}
]
}
提前谢谢
由于安全问题,Bot尚不支持发送PDF等附件。Skype只能发送音频和视频等媒体附件
你可以参考一下